diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-24 11:16:42 +0000 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2018-04-10 03:10:12 +0200 |
commit | 43567ff404cd4ed0d09c28ddb55efb73d629d4d3 (patch) | |
tree | bd76cad543912508432ebd3cdcc265cda437a2b0 /svtools | |
parent | 69e06991dd75859db0b9165606454514d91877da (diff) |
coverity#1426923 Pointer to local outside scope
Change-Id: I200b09dc514b64fbd88050a1f5a8668ec640305f
Reviewed-on: https://gerrit.libreoffice.org/47040
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 6fabcc6d45774d1c99c99a6d0dc92c44ac196185)
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/ehdl.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 1c4b070e8ccb..f73adec3c045 100644 --- a/svtools/source/misc/ehdl.cxx +++ b/svtools/source/misc/ehdl.cxx @@ -140,7 +140,7 @@ static DialogMask aWndFunc( } SfxErrorHandler::SfxErrorHandler(const ErrMsgCode* pIdPs, ErrCodeArea lStartP, ErrCodeArea lEndP, const std::locale& rLocale) - : lStart(lStartP), lEnd(lEndP), pIds(pIdPs), rResLocale(rLocale) + : lStart(lStartP), lEnd(lEndP), pIds(pIdPs), aResLocale(rLocale) { ErrorRegistry::RegisterDisplay(&aWndFunc); } @@ -219,7 +219,7 @@ bool SfxErrorHandler::GetErrorString(ErrCode lErrId, OUString &rStr) const { if (pItem->second.GetRest() == lErrId.GetRest()) { - rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, rResLocale)); + rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, aResLocale)); bRet = true; break; } @@ -239,7 +239,7 @@ bool SfxErrorHandler::GetErrorString(ErrCode lErrId, OUString &rStr) const SfxErrorContext::SfxErrorContext( sal_uInt16 nCtxIdP, vcl::Window *pWindow, const ErrMsgCode* pIdsP, const std::locale& rResLocaleP) -: ErrorContext(pWindow), nCtxId(nCtxIdP), pIds(pIdsP), rResLocale(rResLocaleP) +: ErrorContext(pWindow), nCtxId(nCtxIdP), pIds(pIdsP), aResLocale(rResLocaleP) { if (!pIds) pIds = getRID_ERRCTX(); @@ -249,7 +249,7 @@ SfxErrorContext::SfxErrorContext( SfxErrorContext::SfxErrorContext( sal_uInt16 nCtxIdP, const OUString &aArg1P, vcl::Window *pWindow, const ErrMsgCode* pIdsP, const std::locale& rResLocaleP) -: ErrorContext(pWindow), nCtxId(nCtxIdP), pIds(pIdsP), rResLocale(rResLocaleP), +: ErrorContext(pWindow), nCtxId(nCtxIdP), pIds(pIdsP), aResLocale(rResLocaleP), aArg1(aArg1P) { if (!pIds) @@ -269,7 +269,7 @@ bool SfxErrorContext::GetString(ErrCode nErrId, OUString &rStr) { if (sal_uInt32(pItem->second) == nCtxId) { - rStr = Translate::get(pItem->first, rResLocale); + rStr = Translate::get(pItem->first, aResLocale); rStr = rStr.replaceAll("$(ARG1)", aArg1); bRet = true; break; @@ -285,7 +285,7 @@ bool SfxErrorContext::GetString(ErrCode nErrId, OUString &rStr) { if (sal_uInt32(pItem->second) == nId) { - rStr = rStr.replaceAll("$(ERR)", Translate::get(pItem->first, rResLocale)); + rStr = rStr.replaceAll("$(ERR)", Translate::get(pItem->first, aResLocale)); break; } } |