[Libreoffice-commits] .: vcl/source
David Tardon
dtardon at kemper.freedesktop.org
Mon Nov 14 21:14:26 PST 2011
vcl/source/gdi/print.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6947091ab0d93bfa84dbbb4a919368f2865d2a45
Author: David Tardon <dtardon at redhat.com>
Date: Tue Nov 15 06:13:30 2011 +0100
use SAL_N_ELEMENTS
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 440da9c..7812032 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1292,8 +1292,8 @@ rtl::OUString Printer::GetPaperName( Paper ePaper )
PAPER_ENV_9, PAPER_ENV_10, PAPER_ENV_11, PAPER_ENV_12, PAPER_KAI16,
PAPER_KAI32, PAPER_KAI32BIG, PAPER_B4_JIS, PAPER_B5_JIS, PAPER_B6_JIS
};
- OSL_ENSURE( sal_uInt32(sizeof(PaperIndex)/sizeof(PaperIndex[0])) == aPaperStrings.Count(), "localized paper name count wrong" );
- for( int i = 0; i < int(sizeof(PaperIndex)/sizeof(PaperIndex[0])); i++ )
+ OSL_ENSURE( sal_uInt32(SAL_N_ELEMENTS(PaperIndex)) == aPaperStrings.Count(), "localized paper name count wrong" );
+ for( int i = 0; i < int(SAL_N_ELEMENTS(PaperIndex)); i++ )
(*pSVData->mpPaperNames)[PaperIndex[i]] = aPaperStrings.GetString(i);
}
}
More information about the Libreoffice-commits
mailing list