summaryrefslogtreecommitdiff
path: root/vcl/source/control/field2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r--vcl/source/control/field2.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 24158a92a6e6..b3e7c8fb0534 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -227,7 +227,6 @@ static OUString ImplPatternReformat( const OUString& rStr,
if (rEditMask.isEmpty())
return rStr;
- OUString aStr = rStr;
OUStringBuffer aOutStr = OUString(rLiteralMask);
sal_Unicode cTempChar;
sal_Unicode cChar;
@@ -239,10 +238,10 @@ static OUString ImplPatternReformat( const OUString& rStr,
while ( i < rEditMask.getLength() )
{
- if ( nStrIndex >= aStr.getLength() )
+ if ( nStrIndex >= rStr.getLength() )
break;
- cChar = aStr[nStrIndex];
+ cChar = rStr[nStrIndex];
cLiteral = rLiteralMask[i];
cMask = rEditMask[i];