[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - desktop/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 26 14:51:59 UTC 2021


 desktop/source/app/crashreport.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e9779829283c7e56ce5bcee97db1a75c11f81b8c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jan 26 12:26:03 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jan 26 15:51:24 2021 +0100

    fix --enable-breakpad build
    
    Change-Id: I45992f2707bf93bc6da15987b26613bea250e76d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109952
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx
index 968734df4493..4a5f93c21117 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -266,12 +266,12 @@ void CrashReporter::writeSystemInfo()
             std::smatch match;
             if( !haveModel && std::regex_match( line, match, modelRegex ) && match.size() == 2)
             {
-                addKeyValue("CPUModelName", OUString::fromUtf8( match[ 1 ].str()), AddItem);
+                addKeyValue("CPUModelName", OUString::fromUtf8(OString(match[ 1 ].str())), AddItem);
                 haveModel = true;
             }
             if( !haveFlags && std::regex_match( line, match, flagsRegex ) && match.size() == 2)
             {
-                addKeyValue("CPUFlags", OUString::fromUtf8( match[ 1 ].str()), AddItem);
+                addKeyValue("CPUFlags", OUString::fromUtf8(OString(match[ 1 ].str())), AddItem);
                 haveFlags = true;
             }
             if( haveModel && haveFlags )
@@ -287,7 +287,7 @@ void CrashReporter::writeSystemInfo()
             std::smatch match;
             if( std::regex_match( line, match, memTotalRegex ) && match.size() == 2)
             {
-                addKeyValue("MemoryTotal", OUString::fromUtf8( match[ 1 ].str()), AddItem);
+                addKeyValue("MemoryTotal", OUString::fromUtf8(OString(match[ 1 ].str())), AddItem);
                 break;
             }
         }


More information about the Libreoffice-commits mailing list