summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ww8export
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 09:35:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-14 14:17:14 +0200
commitb70fa47aec65fe95da94fc17640dda27650e9677 (patch)
tree7e54f37342fd57c324f43d54659335554a9c8e72 /sw/qa/extras/ww8export
parent6db84250d1c4e7ec5a54ff75e124ea9a84ff89d9 (diff)
use more SAL_N_ELEMENTS part 1
- teach comphelper::containerToSequence to handle sized arrays - also use range based for-loop where appropriate. Change-Id: I73ba9b6295e7b29c872ee53de7a9340969e07f99 Reviewed-on: https://gerrit.libreoffice.org/38769 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/extras/ww8export')
-rw-r--r--sw/qa/extras/ww8export/ww8export.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index ebb49f6ae2d1..2af0b8fde045 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -1241,7 +1241,7 @@ DECLARE_WW8EXPORT_TEST(testCommentExport, "comment-export.odt")
OUString sNames[6];
- const int nNumberOfTextPortions = sizeof(aTextPortions) / (sizeof(TextPortionInfo));
+ const int nNumberOfTextPortions = SAL_N_ELEMENTS(aTextPortions);
uno::Reference<text::XTextRange> xPara = getParagraph(1);