diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-02-28 10:06:29 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-02-28 10:07:37 +0100 |
commit | f31548f70c85a83fe820c6ae1c9b9803074039b0 (patch) | |
tree | 322b960ae82eba0ebb333a5d7e025230efa1173b /writerfilter | |
parent | Consolidate code that insert new dimensions. (diff) | |
download | core-f31548f70c85a83fe820c6ae1c9b9803074039b0.tar.gz core-f31548f70c85a83fe820c6ae1c9b9803074039b0.zip |
RTFFrame::getSprms: use SAL_N_ELEMENTS()
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index f293bf6a10ba..f388ec88e0ed 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -3496,7 +3496,7 @@ RTFSprms RTFFrame::getSprms() NS_ooxml::LN_CT_FramePr_lines }; - for ( int i = 0, len = sizeof( pNames ) / sizeof( Id ); i < len; ++i ) + for ( int i = 0, len = SAL_N_ELEMENTS(pNames); i < len; ++i ) { Id aId = pNames[i]; RTFValue::Pointer_t pValue; |