diff options
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 11 |
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( ); } |