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 @@ ...@@ -36,8 +36,6 @@
#define ASSERT_EXCEPTION(ex) (void)(ex) #define ASSERT_EXCEPTION(ex) (void)(ex)
#endif #endif
#define U2C(ouString) (OUStringToOString(ouString,RTL_TEXTENCODING_ASCII_US).getStr())
// CHART_MACROS_HXX // CHART_MACROS_HXX
#endif #endif
......
...@@ -173,7 +173,7 @@ Reference< document::XFilter > ChartModel::impl_createFilter( ...@@ -173,7 +173,7 @@ Reference< document::XFilter > ChartModel::impl_createFilter(
xFilter.set( xFilter.set(
m_xContext->getServiceManager()->createInstanceWithContext( m_xContext->getServiceManager()->createInstanceWithContext(
aFilterServiceName, m_xContext ), uno::UNO_QUERY_THROW ); 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( ...@@ -257,7 +257,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstance(
// createInstance is called with an unknown service-name, this // createInstance is called with an unknown service-name, this
// function will just return an empty XInterface. // function will just return an empty XInterface.
ASSERT_EXCEPTION( ex ); ASSERT_EXCEPTION( ex );
OSL_TRACE( "Couldn't instantiate service \"%s\"", U2C( aServiceSpecifier )); SAL_WARN("chart2", "Couldn't instantiate service: "<< aServiceSpecifier );
xResult.set( 0 ); xResult.set( 0 );
} }
} }
......
...@@ -410,7 +410,7 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource ) ...@@ -410,7 +410,7 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( ! xSource.is()) if( ! xSource.is())
return; return;
OSL_TRACE( "DataSource in DataInterpreter:" ); SAL_INFO("chart2", "DataSource in DataInterpreter:" );
Sequence< Reference< data::XLabeledDataSequence > > aSequences( xSource->getDataSequences()); Sequence< Reference< data::XLabeledDataSequence > > aSequences( xSource->getDataSequences());
Reference< beans::XPropertySet > xProp; Reference< beans::XPropertySet > xProp;
OUString aId; OUString aId;
...@@ -426,11 +426,11 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource ) ...@@ -426,11 +426,11 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( xProp.is() && if( xProp.is() &&
( xProp->getPropertyValue( "Role") >>= aId )) ( 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 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>"; aSourceRepr = "<none>";
...@@ -440,11 +440,12 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource ) ...@@ -440,11 +440,12 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource )
if( xProp.is() && if( xProp.is() &&
( xProp->getPropertyValue( "Role") >>= aId )) ( 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 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 @@ ...@@ -21,7 +21,6 @@
#include "InternalData.hxx" #include "InternalData.hxx"
#include "ResId.hxx" #include "ResId.hxx"
#include "Strings.hrc" #include "Strings.hrc"
#include "macros.hxx"
#include <rtl/math.hxx> #include <rtl/math.hxx>
#include <algorithm> #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