filter/source/msfilter/mstoolbar.cxx | 12 ++++++++++++ include/filter/msfilter/mstoolbar.hxx | 1 + 2 files changed, 13 insertions(+)
New commits: commit cc2ffcad79916ddfb903a60cbc4da946fc272d68 Author: Eike Rathke <[email protected]> Date: Mon Oct 26 20:04:27 2015 +0100 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 diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx index 6baa8cc..b856b0a 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) diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx index bfada57..205d019 100644 --- a/include/filter/msfilter/mstoolbar.hxx +++ b/include/filter/msfilter/mstoolbar.hxx @@ -70,6 +70,7 @@ class MSFILTER_DLLPUBLIC TBBase friend class Indent; static int nIndent; // num spaces to indent before printing protected: + static void indent_printf(FILE* fp, const char* format, ... ); sal_uInt32 nOffSet; // usually for debug we can store the offset in the stream to this record public: TBBase() : nOffSet( 0 ) {} _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
