summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-20 14:23:33 +0200
committerNoel Grandin <noel@peralex.com>2014-01-07 09:43:37 +0200
commit82625bb98e256b83351328d3bf2a14e3dd244eef (patch)
tree9b661850ae5df9ea27fcac063cfe61862046c8d1 /vbahelper
parent347af397cafa97cfa7d5027f83fff784ca04a397 (diff)
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index ae2077f7128a..6b184a6ae77a 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -569,14 +569,14 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
int seenright = 0;
if ( bForLike )
- sResult.append(static_cast<sal_Unicode>('^'));
+ sResult.append('^');
while (start < end)
{
switch (*start)
{
case '?':
- sResult.append(static_cast<sal_Unicode>('.'));
+ sResult.append('.');
start++;
break;
case '*':
@@ -588,13 +588,13 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
start++;
break;
case '~':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*(++start));
start++;
break;
// dump the ~ and escape the next characture
case ']':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start++);
break;
case '[':
@@ -607,7 +607,7 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
case '[':
case '?':
case '*':
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append(('\\');
sResult.append(*start);
break;
case ']':
@@ -615,11 +615,11 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
seenright = 1;
break;
case '!':
- sResult.append(static_cast<sal_Unicode>('^'));
+ sResult.append('^');
break;
default:
if (NeedEsc(*start))
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start);
break;
}
@@ -628,13 +628,13 @@ OUString VBAToRegexp(const OUString &rIn, bool bForLike )
break;
default:
if (NeedEsc(*start))
- sResult.append(static_cast<sal_Unicode>('\\'));
+ sResult.append('\\');
sResult.append(*start++);
}
}
if ( bForLike )
- sResult.append(static_cast<sal_Unicode>('$'));
+ sResult.append('$');
return sResult.makeStringAndClear( );
}