Kaydet (Commit) aa463487 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

remove C2U in chart2

Change-Id: Id7ebf66319f0891d276a3da95a95658aed59cbc7
üst deae3771
......@@ -36,8 +36,6 @@
#define ASSERT_EXCEPTION(ex) (void)(ex)
#endif
#define U2C(ouString) (OUStringToOString(ouString,RTL_TEXTENCODING_ASCII_US).getStr())
// CHART_MACROS_HXX
#endif
......
......@@ -173,7 +173,7 @@ Reference< document::XFilter > ChartModel::impl_createFilter(
xFilter.set(
m_xContext->getServiceManager()->createInstanceWithContext(
aFilterServiceName, m_xContext ), uno::UNO_QUERY_THROW );
OSL_TRACE( "Filter found for service %s", U2C( aFilterServiceName ));
SAL_WARN("chart2", "Filter found for service " << aFilterServiceName );
}
}
}
......
......@@ -257,7 +257,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstance(
// createInstance is called with an unknown service-name, this
// function will just return an empty XInterface.
ASSERT_EXCEPTION( ex );
OSL_TRACE( "Couldn't instantiate service \"%s\"", U2C( aServiceSpecifier ));
SAL_WARN("chart2", "Couldn't instantiate service: "<< aServiceSpecifier );
xResult.set( 0 );
}
}
......
......@@ -410,7 +410,7 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( ! xSource.is())
return;
OSL_TRACE( "DataSource in DataInterpreter:" );
SAL_INFO("chart2", "DataSource in DataInterpreter:" );
Sequence< Reference< data::XLabeledDataSequence > > aSequences( xSource->getDataSequences());
Reference< beans::XPropertySet > xProp;
OUString aId;
......@@ -426,11 +426,11 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( xProp.is() &&
( xProp->getPropertyValue( "Role") >>= aId ))
{
OSL_TRACE( " <data sequence %d> Role: %s, Source: %s", k, U2C( aId ), U2C( aSourceRepr ));
SAL_INFO("chart2", " <data sequence " << k << "> Role: " << aId << ", Source: "<< aSourceRepr);
}
else
{
OSL_TRACE( " <data sequence %d> unknown Role, Source: %s", k, U2C( aSourceRepr ) );
SAL_INFO("chart2", " <data sequence " << k << "> unknown Role, Source: " << aSourceRepr );
}
aSourceRepr = "<none>";
......@@ -440,11 +440,12 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( xProp.is() &&
( xProp->getPropertyValue( "Role") >>= aId ))
{
OSL_TRACE( " <data sequence label %d> Role: %s, Source: %s", k, U2C( aId ), U2C( aSourceRepr ));
SAL_INFO("chart2", " <data sequence label " << k << "> Role: " << aId
<< ", Source: " << aSourceRepr );
}
else
{
OSL_TRACE( " <data sequence label %d> unknown Role, Source: %s", k, U2C( aSourceRepr ) );
SAL_INFO("chart2", " <data sequence label " << k << "> unknown Role, Source: " << aSourceRepr );
}
}
}
......
......@@ -21,7 +21,6 @@
#include "InternalData.hxx"
#include "ResId.hxx"
#include "Strings.hrc"
#include "macros.hxx"
#include <rtl/math.hxx>
#include <algorithm>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment