summaryrefslogtreecommitdiff
path: root/vbahelper/source/vbahelper/vbahelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source/vbahelper/vbahelper.cxx')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index aa72b3cd1de4..e45911c544f6 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -548,10 +548,10 @@ ContainerUtilities::FieldInList( const uno::Sequence< OUString >& SearchList, co
return retvalue;
}
+
bool NeedEsc(sal_Unicode cCode)
{
- OUString sEsc(".^$+\\|{}()");
- return -1 != sEsc.indexOf(cCode);
+ return OUString(".^$+\\|{}()").indexOf(cCode) != -1;
}
OUString VBAToRegexp(const OUString &rIn, bool bForLike )