summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-26 11:11:18 +0200
committerNoel Grandin <noel@peralex.com>2016-02-26 13:21:20 +0200
commit236f3089175c601e2be36d034b3214d06be89767 (patch)
treecc4ea2f0ab87869378c1fc417ca94fad1a942551 /vbahelper/source
parentf467269e1a5b0cbd9519f8cdc5d99fccc1db613f (diff)
loplugin:unuseddefaultparam in include/vbahelper
Change-Id: Idac2134dce40a54cc04f595464357a0f9ca71be0
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 721c7f793324..effbbf028495 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -120,7 +120,7 @@ aNULL()
return aNULLL;
}
-void dispatchExecute(SfxViewShell* pViewShell, sal_uInt16 nSlot, SfxCallMode nCall)
+void dispatchExecute(SfxViewShell* pViewShell, sal_uInt16 nSlot)
{
SfxViewFrame* pViewFrame = nullptr;
if ( pViewShell )
@@ -130,7 +130,7 @@ void dispatchExecute(SfxViewShell* pViewShell, sal_uInt16 nSlot, SfxCallMode nCa
SfxDispatcher* pDispatcher = pViewFrame->GetDispatcher();
if( pDispatcher )
{
- pDispatcher->Execute( nSlot , nCall );
+ pDispatcher->Execute( nSlot , SfxCallMode::SYNCHRON );
}
}
}
@@ -554,15 +554,13 @@ bool NeedEsc(sal_Unicode cCode)
return OUString(".^$+\\|{}()").indexOf(cCode) != -1;
}
-OUString VBAToRegexp(const OUString &rIn, bool bForLike )
+OUString VBAToRegexp(const OUString &rIn)
{
OUStringBuffer sResult;
const sal_Unicode *start = rIn.getStr();
const sal_Unicode *end = start + rIn.getLength();
int seenright = 0;
- if ( bForLike )
- sResult.append('^');
while (start < end)
{
@@ -626,9 +624,6 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
}
}
- if ( bForLike )
- sResult.append('$');
-
return sResult.makeStringAndClear( );
}