diff options
author | Roman Kuznetsov <antilibreoffice@gmail.com> | 2022-05-29 15:27:29 +0200 |
---|---|---|
committer | Roman Kuznetsov <antilibreoffice@gmail.com> | 2022-05-30 12:24:17 +0200 |
commit | 81aad6d53fa792dd95732e401ecb298714f699f4 (patch) | |
tree | 5fa330d5e480d9edb96ab837d3d996bbbe0e7abb /tools | |
parent | d694b572c7262a326ac7ceac2e558f3fc6c78df4 (diff) |
tdf#147021 Use std::size() instead SAL_N_ELEMENTS macro
Change-Id: Id91ca2d7002b3743ecaed7b40edda3f85e080884
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135061
Tested-by: Jenkins
Reviewed-by: Roman Kuznetsov <antilibreoffice@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/reversemap/bestreversemap.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/source/reversemap/bestreversemap.cxx b/tools/source/reversemap/bestreversemap.cxx index 02a81932b3f2..f124140c1918 100644 --- a/tools/source/reversemap/bestreversemap.cxx +++ b/tools/source/reversemap/bestreversemap.cxx @@ -11,6 +11,7 @@ #include <rtl/textcvt.h> #include <cstdlib> +#include <iterator> #include <stdio.h> namespace { @@ -91,7 +92,7 @@ int main() sal_Unicode c = 0; while (c < 0xFFFF) { - for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i) + for (size_t i = 0; i < std::size(aConverters); ++i) aConverters[i].reset(); int nMostCapable = -1; @@ -99,7 +100,7 @@ int main() while(c < 0xFFFF) { bool bSomethingCapable = false; - for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i) + for (size_t i = 0; i < std::size(aConverters); ++i) { if (aConverters[i].isOK()) aConverters[i].checkSupports(c); @@ -119,7 +120,7 @@ int main() while(c < 0xFFFF) { bool bNothingCapable = true; - for (size_t i = 0; i < SAL_N_ELEMENTS(aConverters); ++i) + for (size_t i = 0; i < std::size(aConverters); ++i) { aConverters[i].checkSupports(c); if (aConverters[i].isOK()) |