summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/msfilter/mstoolbar.cxx2
-rw-r--r--include/filter/msfilter/mstoolbar.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index b856b0a765a5..1afd51253123 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -161,6 +161,7 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen
return bRes;
}
+#if OSL_DEBUG_LEVEL > 1
void
TBBase::indent_printf( FILE* fp, const char* format, ... )
{
@@ -174,6 +175,7 @@ TBBase::indent_printf( FILE* fp, const char* format, ... )
vfprintf( fp, format, ap );
va_end( ap );
}
+#endif
TBCHeader::TBCHeader()
: bSignature(0x3)
diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx
index 205d019bca3c..d2e8531c7e51 100644
--- a/include/filter/msfilter/mstoolbar.hxx
+++ b/include/filter/msfilter/mstoolbar.hxx
@@ -70,7 +70,9 @@ class MSFILTER_DLLPUBLIC TBBase
friend class Indent;
static int nIndent; // num spaces to indent before printing
protected:
+#if OSL_DEBUG_LEVEL > 1
static void indent_printf(FILE* fp, const char* format, ... );
+#endif
sal_uInt32 nOffSet; // usually for debug we can store the offset in the stream to this record
public:
TBBase() : nOffSet( 0 ) {}