[Libreoffice-commits] .: automation/source chart2/source cppcanvas/source sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Aug 23 06:05:30 PDT 2011


 automation/source/server/statemnt.cxx               |    4 ++--
 automation/source/simplecm/simplecm.cxx             |    4 ++--
 chart2/source/model/main/ChartModel_Persistence.cxx |    2 +-
 chart2/source/model/template/ChartTypeTemplate.cxx  |    4 ++--
 cppcanvas/source/mtfrenderer/emfplus.cxx            |    1 +
 sc/source/core/data/attarray.cxx                    |    1 +
 6 files changed, 9 insertions(+), 7 deletions(-)

New commits:
commit 0e9d01756c8adf890ce73c2115bab5d91a2e2fb4
Author: Gabor <jengab at elte.hu>
Date:   Tue Aug 23 14:25:38 2011 +0200

    debug build errors

diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index ed0e110..12a00e3 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -692,7 +692,7 @@ StatementCommand::StatementCommand( StatementList *pAfterThis, sal_uInt16 Method
     if( nParams & PARAM_UINT16_2 )  {m_pDbgWin->AddText( " n2:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr2 ) );}
     if( nParams & PARAM_UINT16_3 )  {m_pDbgWin->AddText( " n3:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr3 ) );}
     if( nParams & PARAM_UINT16_4 )  {m_pDbgWin->AddText( " n4:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr4 ) );}
-    if( nParams & PARAM_UINT32_1 )  {m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1 ) );}
+    if( nParams & PARAM_UINT32_1 )  {m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1_and_Pointer.nLNr1 ) );}
     if( nParams & PARAM_STR_1 )     {m_pDbgWin->AddText( " s1:" );m_pDbgWin->AddText( aString1 );}
     if( nParams & PARAM_STR_2 )     {m_pDbgWin->AddText( " s2:" );m_pDbgWin->AddText( aString2 );}
     if( nParams & PARAM_BOOL_1 )    {m_pDbgWin->AddText( " b1:" );m_pDbgWin->AddText( bBool1 ? "TRUE" : "FALSE" );}
@@ -739,7 +739,7 @@ StatementCommand::StatementCommand( SCmdStream *pCmdIn )
     if( nParams & PARAM_UINT16_2 )  {m_pDbgWin->AddText( " n2:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr2 ) );}
     if( nParams & PARAM_UINT16_3 )  {m_pDbgWin->AddText( " n3:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr3 ) );}
     if( nParams & PARAM_UINT16_4 )  {m_pDbgWin->AddText( " n4:" );m_pDbgWin->AddText( String::CreateFromInt32( nNr4 ) );}
-    if( nParams & PARAM_UINT32_1 )  {m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1 ) );}
+    if( nParams & PARAM_UINT32_1 )  {m_pDbgWin->AddText( " nl1:" );m_pDbgWin->AddText( String::CreateFromInt64( nLNr1_and_Pointer.nLNr1 ) );}
     if( nParams & PARAM_STR_1 )     {m_pDbgWin->AddText( " s1:" );m_pDbgWin->AddText( aString1 );}
     if( nParams & PARAM_STR_2 )     {m_pDbgWin->AddText( " s2:" );m_pDbgWin->AddText( aString2 );}
     if( nParams & PARAM_BOOL_1 )    {m_pDbgWin->AddText( " b1:" );m_pDbgWin->AddText( bBool1 ? "TRUE" : "FALSE" );}
diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx
index 39f8643..2cc5b93 100644
--- a/automation/source/simplecm/simplecm.cxx
+++ b/automation/source/simplecm/simplecm.cxx
@@ -43,10 +43,10 @@
 #include <stdio.h>
 void debug_printf( const char *chars )
 {
-    static BOOL bPrint = (getenv("DEBUG") != NULL);
+    static bool bPrint = (getenv("DEBUG") != NULL);
     if ( bPrint )
     {
-        printf( "%c\n", chars );
+        printf( "%s\n", chars );
         fflush( stdout );
     }
 }
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index b1cbbd0..809419b 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -503,7 +503,7 @@ void SAL_CALL ChartModel::initNew()
 #if OSL_DEBUG_LEVEL >= CHART_TRACE_OSL_DEBUG_LEVEL
     OSL_TRACE( "ChartModel::initNew: Showing ChartDocument structure" );
     OSL_TRACE( "----------------------------------------------------" );
-    debug::ChartDebugTraceDocument( Reference< chart2::XChartDocument >( this ));
+    ::chart::debug::ChartDebugTraceDocument( Reference< chart2::XChartDocument >( this ));
 #endif
 }
 
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 9fee9b3..77d2b3f 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -322,7 +322,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagramData(
 #if OSL_DEBUG_LEVEL >= CHART_TRACE_OSL_DEBUG_LEVEL
     OSL_TRACE( "ChartTypeTemplate::changeDiagramData: Showing Diagram structure" );
     OSL_TRACE( "---------------------------------------------------------------" );
-    debug::ChartDebugTraceDiagram( xDiagram );
+    ::chart::debug::ChartDebugTraceDiagram( xDiagram );
 #endif
     }
     catch( uno::Exception & ex )
@@ -822,7 +822,7 @@ void ChartTypeTemplate::FillDiagram(
 #if OSL_DEBUG_LEVEL >= CHART_TRACE_OSL_DEBUG_LEVEL
     OSL_TRACE( "ChartTypeTemplate::FillDiagram: Showing Diagram structure" );
     OSL_TRACE( "---------------------------------------------------------" );
-    debug::ChartDebugTraceDiagram( xDiagram );
+    ::chart::debug::ChartDebugTraceDiagram( xDiagram );
 #endif
 }
 
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 26581c9..327fd41 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -52,6 +52,7 @@
 #include <outdevstate.hxx>
 #include <polypolyaction.hxx>
 #include <textaction.hxx>
+#include <stdio.h>
 
 #define EmfPlusRecordTypeHeader 16385
 #define EmfPlusRecordTypeEndOfFile 16386
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 6c1a989..4296beb 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -55,6 +55,7 @@
 #include "globstr.hrc"
 #include "segmenttree.hxx"
 #include "cell.hxx"
+#include <rtl/strbuf.hxx>
 
 // STATIC DATA -----------------------------------------------------------
 


More information about the Libreoffice-commits mailing list