summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-26 12:26:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-26 15:51:24 +0100
commite9779829283c7e56ce5bcee97db1a75c11f81b8c (patch)
tree99fe1143905c63f607587b27b9638b541791962e /desktop
parent242ff50f23bf0db6a6e4f9be292dad987115ca19 (diff)
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@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/crashreport.cxx6
1 files changed, 3 insertions, 3 deletions
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;
}
}