summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorsahil <gautamsahil1947@gmail.com>2023-07-28 02:04:09 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2023-07-28 07:07:11 +0200
commit0c45d90cfb1cc60218fbce3743df442b1f1d3f70 (patch)
tree58a137c48424047ab62d054c4e09a37113790183 /l10ntools
parentd6efe8c302b81886706e18640148c51cf7883bbf (diff)
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: I7217c04aa13082c1d2006c0c6a145b1b4fdbac0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155003 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/localize.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 7f9587b4c22b..96da93e139e2 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -203,7 +203,7 @@ bool handleFile(std::string_view rProject, const OUString& rUrl, std::string_vie
{ std::u16string_view(u".properties"), "propex", false },
{ std::u16string_view(u".ui"), "uiex", false },
{ std::u16string_view(u".tree"), "treex", false } };
- for (size_t i = 0; i != SAL_N_ELEMENTS(commands); ++i)
+ for (size_t i = 0; i != std::size(commands); ++i)
{
if (rUrl.endsWith(commands[i].extension) &&
(commands[i].executable != "propex" || rUrl.indexOf("en_US") != -1))