vcl/source/app/svdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5343835d72f235743c44f12da3c60c25dec5c6fd
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 11 12:44:59 2022 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 11 15:11:44 2022 +0100

    silence 'sal/rtl/strtmpl.hxx:162: Found non-ASCII char' warning
    
    Change-Id: I7f537c641dcd8aa92cd5034b557f947b4a25ba02
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131375
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index 1493729c9b1d..cb553176cc36 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -284,7 +284,7 @@ namespace vcl
         sal_uInt32 nUnits = SAL_N_ELEMENTS(SV_FUNIT_STRINGS);
         for (sal_uInt32 i = 0; i < nUnits; ++i)
         {
-            if 
(rEnglishMetricString.equalsAscii(SV_FUNIT_STRINGS[i].first.mpId))
+            if (rEnglishMetricString.toUtf8() == 
SV_FUNIT_STRINGS[i].first.mpId)
                 return SV_FUNIT_STRINGS[i].second;
         }
         return FieldUnit::NONE;

Reply via email to