summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-26 20:04:27 +0100
committerEike Rathke <erack@redhat.com>2015-10-26 20:08:10 +0100
commitcc2ffcad79916ddfb903a60cbc4da946fc272d68 (patch)
tree7b35087f4f638c0126842b07d089c9b889d2781f /filter
parentf5be64cde53680bbff3ffa4d3b630f4fd2b6bca0 (diff)
reintroduce TBBase::indent_printf()
This partly reverts a90c6eb99c8c2167c4b1ec75a21a30a344bfea43 which erroneously removed the method as unused because it is used only with OSL_DEBUG_LEVEL > 2 Change-Id: I6fa52775b6a013c0086ba9d7ae21720a9ab8aa01
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/mstoolbar.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index 6baa8cc4556e..b856b0a765a5 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -161,7 +161,19 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen
return bRes;
}
+void
+TBBase::indent_printf( FILE* fp, const char* format, ... )
+{
+ va_list ap;
+ va_start ( ap, format );
+ // indent nIndent spaces
+ for ( int i=0; i<nIndent; ++i)
+ fprintf(fp," ");
+ // append the rest of the message
+ vfprintf( fp, format, ap );
+ va_end( ap );
+}
TBCHeader::TBCHeader()
: bSignature(0x3)