comphelper/source/misc/hash.cxx                |    2 +-
 onlineupdate/source/update/updater/updater.cxx |    2 +-
 oox/source/crypto/CryptTools.cxx               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9f812ea09047e213571919afa4901bdd81b31afa
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Wed Jan 25 10:32:39 2023 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Wed Jan 25 09:11:29 2023 +0000

    loplugin:cstylecast
    
    Change-Id: I729965fd60955102422f579cad458e564de16c34
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146125
    Tested-by: Tor Lillqvist <t...@collabora.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>

diff --git a/comphelper/source/misc/hash.cxx b/comphelper/source/misc/hash.cxx
index 0fb2ef28c461..d537b9eeff72 100644
--- a/comphelper/source/misc/hash.cxx
+++ b/comphelper/source/misc/hash.cxx
@@ -84,7 +84,7 @@ struct HashImpl
             {
                 PRErrorCode error = PR_GetError();
                 const char* errorText = PR_ErrorToName(error);
-                throw css::uno::RuntimeException("NSS_NoDB_Init failed with " 
+ OUString(errorText, strlen(errorText), RTL_TEXTENCODING_UTF8) + " (" + 
OUString::number((int) error) + ")");
+                throw css::uno::RuntimeException("NSS_NoDB_Init failed with " 
+ OUString(errorText, strlen(errorText), RTL_TEXTENCODING_UTF8) + " (" + 
OUString::number(static_cast<int>(error)) + ")");
             }
         }
         mpContext = HASH_Create(getNSSType());
diff --git a/onlineupdate/source/update/updater/updater.cxx 
b/onlineupdate/source/update/updater/updater.cxx
index 467f0b67cd1f..a82733323bb9 100644
--- a/onlineupdate/source/update/updater/updater.cxx
+++ b/onlineupdate/source/update/updater/updater.cxx
@@ -2925,7 +2925,7 @@ int NS_main(int argc, NS_tchar **argv)
         {
             PRErrorCode error = PR_GetError();
             fprintf(stderr, "Could not initialize NSS: %s (%d)",
-                    PR_ErrorToName(error), (int) error);
+                    PR_ErrorToName(error), static_cast<int>(error));
             _exit(1);
         }
     }
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx
index c66a04084c87..e0a4b9d686cc 100644
--- a/oox/source/crypto/CryptTools.cxx
+++ b/oox/source/crypto/CryptTools.cxx
@@ -175,7 +175,7 @@ struct CryptoImpl
             {
                 PRErrorCode error = PR_GetError();
                 const char* errorText = PR_ErrorToName(error);
-                throw css::uno::RuntimeException("NSS_NoDB_Init failed with " 
+ OUString(errorText, strlen(errorText), RTL_TEXTENCODING_UTF8) + " (" + 
OUString::number((int) error) + ")");
+                throw css::uno::RuntimeException("NSS_NoDB_Init failed with " 
+ OUString(errorText, strlen(errorText), RTL_TEXTENCODING_UTF8) + " (" + 
OUString::number(static_cast<int>(error)) + ")");
             }
         }
     }

Reply via email to