diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 19:23:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 19:23:41 +0100 |
commit | c3fd791b54187a0a9df91d4674e95acd94ad1a17 (patch) | |
tree | 239d14401c9587b86739686ecba8bedd7886f2d8 /uui | |
parent | 0a38e49ee801be8e754cbf7b800aaab5da392c6d (diff) |
coverity#1415622 Pointer to local outside scope
Change-Id: I870588f62f5cbb688fa0662483ba008a54ffc492
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/iahndl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index cb24ce840f04..1e0f4b91b609 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -1194,7 +1194,8 @@ UUIInteractionHelper::handleBrokenPackageRequest( OUString aMessage; { - ErrorResource aErrorResource(RID_UUI_ERRHDL, Translate::Create("uui", Application::GetSettings().GetUILanguageTag())); + std::locale aResLocale = Translate::Create("uui", Application::GetSettings().GetUILanguageTag()); + ErrorResource aErrorResource(RID_UUI_ERRHDL, aResLocale); if (!aErrorResource.getString(nErrorCode, aMessage)) return; } |