[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann sbergman at redhat.com
Mon Jan 22 21:23:19 UTC 2018


 sal/osl/all/log.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5dd62512f520bbccfa864c6454c2c7c4b1462504
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jan 22 13:02:42 2018 +0100

    loplugin:nullptr (clang-cl)
    
    Change-Id: Ie60f2cc7c3b0bcba7ddf2e7a0f6837c821b33dcc
    Reviewed-on: https://gerrit.libreoffice.org/48313
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index e25136f2002d..1eae31ab7c3f 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -106,7 +106,7 @@ char const * getEnvironmentVariable(const char* env) {
 
 bool getValueFromLoggingIniFile(const char* key, char* value) {
     char buffer[MAX_PATH];
-    GetModuleFileName(NULL, buffer, MAX_PATH);
+    GetModuleFileName(nullptr, buffer, MAX_PATH);
     std::string sProgramDirectory = std::string(buffer);
     std::string::size_type pos = sProgramDirectory.find_last_of( "\\/" );
     sProgramDirectory = sProgramDirectory.substr(0, pos+1);


More information about the Libreoffice-commits mailing list