Kaydet (Commit) cc2ffcad authored tarafından Eike Rathke's avatar Eike Rathke

reintroduce TBBase::indent_printf()

This partly reverts a90c6eb9 which
erroneously removed the method as unused because it is used only with
OSL_DEBUG_LEVEL > 2

Change-Id: I6fa52775b6a013c0086ba9d7ae21720a9ab8aa01
üst f5be64cd
...@@ -161,7 +161,19 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen ...@@ -161,7 +161,19 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen
return bRes; 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() TBCHeader::TBCHeader()
: bSignature(0x3) : bSignature(0x3)
......
...@@ -70,6 +70,7 @@ class MSFILTER_DLLPUBLIC TBBase ...@@ -70,6 +70,7 @@ class MSFILTER_DLLPUBLIC TBBase
friend class Indent; friend class Indent;
static int nIndent; // num spaces to indent before printing static int nIndent; // num spaces to indent before printing
protected: 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 sal_uInt32 nOffSet; // usually for debug we can store the offset in the stream to this record
public: public:
TBBase() : nOffSet( 0 ) {} TBBase() : nOffSet( 0 ) {}
......
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