diff options
Diffstat (limited to 'kbarcode/tokenprovider.cpp')
-rw-r--r-- | kbarcode/tokenprovider.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kbarcode/tokenprovider.cpp b/kbarcode/tokenprovider.cpp index f0d4e0b..dfbe9a6 100644 --- a/kbarcode/tokenprovider.cpp +++ b/kbarcode/tokenprovider.cpp @@ -915,10 +915,10 @@ const TQString TokenProvider::createSerial() TQString TokenProvider::unescapeText( const TQString & t ) { TQString tmp = t; - tmp = tmp.replace( DSREPLACE( "<" ), "<" ); - tmp = tmp.replace( DSREPLACE( ">" ), ">" ); - tmp = tmp.replace( DSREPLACE( "&" ), "&" ); - tmp = tmp.replace( DSREPLACE( """ ), "\"" ); + tmp = tmp.replace( "<", "<" ); + tmp = tmp.replace( ">", ">" ); + tmp = tmp.replace( "&", "&" ); + tmp = tmp.replace( """, "\"" ); return tmp; } @@ -926,11 +926,11 @@ TQString TokenProvider::unescapeText( const TQString & t ) TQString TokenProvider::escapeText( const TQString & t ) { TQString tmp = t; - tmp = tmp.replace( DSREPLACE( "<" ), "<" ); - tmp = tmp.replace( DSREPLACE( ">" ), ">" ); - tmp = tmp.replace( DSREPLACE( "&" ), "&" ); - tmp = tmp.replace( DSREPLACE( "\"" ), """ ); - tmp = tmp.replace( DSREPLACE( "\n" ), "<br />" ); + tmp = tmp.replace( "<", "<" ); + tmp = tmp.replace( ">", ">" ); + tmp = tmp.replace( "&", "&" ); + tmp = tmp.replace( "\"", """ ); + tmp = tmp.replace( "\n", "<br />" ); return tmp; } |