summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshb.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-06 08:48:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-06 09:53:07 +0200
commit66123b319da98c6ecabcd9635eb2ed9c3de99f35 (patch)
tree9abe2f1a2b350e5788ec03cb47ec90f6cd48dfa8 /sc/source/ui/view/tabvwshb.cxx
parent48c0ada1745be2cd817d5bd8a912530028fa8419 (diff)
use more ErrCodeMsg
instead of a sideband mechanism to convey extra error message around Change-Id: Ibd1fc8629c5b10bc6f9e6cbd30e8a20156ac13b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157630 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/tabvwshb.cxx')
-rw-r--r--sc/source/ui/view/tabvwshb.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 04c97bcea64f..f0415d03d9aa 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -159,7 +159,7 @@ void ScTabViewShell::ActivateObject(SdrOle2Obj* pObj, sal_Int32 nVerb)
uno::Reference < embed::XEmbeddedObject > xObj = pObj->GetObjRef();
vcl::Window* pWin = GetActiveWin();
- ErrCode nErr = ERRCODE_NONE;
+ ErrCodeMsg nErr = ERRCODE_NONE;
bool bErrorShown = false;
{
@@ -174,7 +174,7 @@ void ScTabViewShell::ActivateObject(SdrOle2Obj* pObj, sal_Int32 nVerb)
if (bNegativeX)
pClient->SetNegativeX(true);
- if ( (sal_uInt32(nErr) & ERRCODE_ERROR_MASK) == 0 && xObj.is() )
+ if ( (sal_uInt32(nErr.GetCode()) & ERRCODE_ERROR_MASK) == 0 && xObj.is() )
{
tools::Rectangle aRect = pObj->GetLogicRect();