diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-05-31 12:47:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-05-31 13:09:03 +0100 |
commit | b1ca0f247280ca1b7f96fef8c89bc451c38d11af (patch) | |
tree | a40a29d958539ce0a4ae1dac2f8b6dfea5d53138 /sc/source/ui/unoobj/scdetect.cxx | |
parent | 5feff80fd2943124568eba07c8cdc465ac201e5d (diff) |
targetted SAL_N_ELEMENTS reversion.
Change-Id: I58636bc87bc17ff2b35621ad554bd05f5c1dab20
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index 7e254d9cd592..43d0bb5f84c8 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -193,7 +193,7 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream ) rStream.Seek(STREAM_SEEK_TO_BEGIN); rStream >> nMark; bool bValidMark = false; - for (size_t i=0; i < SAL_N_ELEMENTS(nValidMarks) && !bValidMark; ++i) + for (size_t i=0; i < sizeof(nValidMarks)/sizeof(nValidMarks[0]) && !bValidMark; ++i) { if (nValidMarks[i] == nMark) bValidMark = true; @@ -650,7 +650,7 @@ static sal_Bool lcl_MayBeDBase( SvStream& rStream ) pLotus2, pQPro }; - const sal_uInt16 nFilterCount = SAL_N_ELEMENTS(ppFilterPatterns); + const sal_uInt16 nFilterCount = sizeof (ppFilterPatterns) / sizeof (ppFilterPatterns[0]); static const sal_Char* const pFilterName[] = // zugehoerige Filter { |