diff options
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r-- | vcl/source/control/field2.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index ac2dbc913896..dfcf63126fe1 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -67,15 +67,8 @@ uno::Reference< i18n::XCharacterClassification > const & ImplGetCharClass() static sal_Unicode* ImplAddString( sal_Unicode* pBuf, const OUString& rStr ) { - if ( rStr.getLength() == 1 ) - *pBuf++ = rStr[0]; - else if ( rStr.isEmpty() ) - ; - else - { - memcpy( pBuf, rStr.getStr(), rStr.getLength() * sizeof(sal_Unicode) ); - pBuf += rStr.getLength(); - } + memcpy( pBuf, rStr.getStr(), rStr.getLength() * sizeof(sal_Unicode) ); + pBuf += rStr.getLength(); return pBuf; } |