vcl/source/gdi/print.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6947091ab0d93bfa84dbbb4a919368f2865d2a45 Author: David Tardon <dtar...@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); } } _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits