summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-01-03 17:56:58 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2020-01-03 21:52:25 +0100
commit894efac8fd6f49d272db340d6f132acd262f93bc (patch)
treedabd43eab74208d39cbcee572af3032f15e821b0 /sfx2
parenta58459543a08d43bcfe219ae290ad480de0ddb9a (diff)
Make variable const, and drop a bogus assert after check
Change-Id: I5160618a6af171e8ce048959bc4152f09d1754b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86195 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appuno.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx
index 466f31e87250..2989ee0ad2ac 100644
--- a/sfx2/source/appl/appuno.cxx
+++ b/sfx2/source/appl/appuno.cxx
@@ -176,7 +176,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert
if ( nSlotId == SID_OPENURL )
nSlotId = SID_OPENDOC;
- sal_Int32 nCount = rArgs.getLength();
+ const sal_Int32 nCount = rArgs.getLength();
if ( !nCount )
return;
@@ -268,8 +268,6 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert
return;
}
- OSL_ASSERT(nCount > 0);
-
#ifdef DBG_UTIL
// detect parameters that don't match to any formal argument or one of its members
sal_Int32 nFoundArgs = 0;