[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann sbergman at redhat.com
Thu Nov 26 01:11:49 PST 2015


 editeng/source/editeng/editdbg.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d972dd9ad80fcfb007ad1689a6afdbcbe24d0f54
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 26 10:11:14 2015 +0100

    SfxStyleSheetBasePool::Count returns sal_uInt16
    
    Change-Id: I2485fd38d03bd63ae83e3643771767e533c7da83

diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx
index 810315e..37d8bad 100644
--- a/editeng/source/editeng/editdbg.cxx
+++ b/editeng/source/editeng/editdbg.cxx
@@ -427,11 +427,11 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, bool bInfoBox )
 
     if ( pEE->pImpEditEngine->GetStyleSheetPool() )
     {
-        sal_uLong nStyles = pEE->pImpEditEngine->GetStyleSheetPool() ? pEE->pImpEditEngine->GetStyleSheetPool()->Count() : 0;
+        sal_uInt16 nStyles = pEE->pImpEditEngine->GetStyleSheetPool() ? pEE->pImpEditEngine->GetStyleSheetPool()->Count() : 0;
         fprintf( fp, "\n\n================================================================================" );
         fprintf( fp, "\n==================   Stylesheets   =============================================" );
         fprintf( fp, "\n================================================================================" );
-        fprintf( fp, "\n#Template:   %lu\n", nStyles );
+        fprintf( fp, "\n#Template:   %" SAL_PRIuUINT32 "\n", sal_uInt32(nStyles) );
         SfxStyleSheetIterator aIter( pEE->pImpEditEngine->GetStyleSheetPool(), SFX_STYLE_FAMILY_ALL );
         SfxStyleSheetBase* pStyle = aIter.First();
         while ( pStyle )


More information about the Libreoffice-commits mailing list