diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-13 16:16:20 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-13 16:21:05 +0100 |
commit | 01baa9e0c8df6a2c9e1a7d675ac6a2d7da7828cc (patch) | |
tree | 2be827fb79e518da12d196ac9e24a042764617c6 /sal/qa/OStringBuffer | |
parent | 3d9f5c856a4a77503695e68ce013ebf859fcb212 (diff) |
checked that we do not use OString ctor with literals with \0's
Except in some unittests, which are sometimes rather silly and
broken about it, which might explain why they're disabled.
Diffstat (limited to 'sal/qa/OStringBuffer')
-rw-r--r-- | sal/qa/OStringBuffer/rtl_OStringBuffer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx index e05c29358179..46b78144572d 100644 --- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx +++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx @@ -190,7 +190,7 @@ namespace rtl_OStringBuffer arrOUS[2] = new OString( kTestStr25 ); arrOUS[3] = new OString( kTestStr27 ); arrOUS[4] = new OString( kTestStr29 ); - arrOUS[5] = new OString( "\0" ); + arrOUS[5] = new OString( "\0", 1 ); } @@ -395,7 +395,7 @@ namespace rtl_OStringBuffer arrOUS[1] = new OString( "1" ); arrOUS[2] = new OString( ); arrOUS[3] = new OString( "" ); - arrOUS[4] = new OString( "\0" ); + arrOUS[4] = new OString( "\0", 1 ); arrOUS[5] = new OString( kTestStr2 ); } @@ -528,7 +528,7 @@ namespace rtl_OStringBuffer arrOUS[1] = new OString( "1" ); arrOUS[2] = new OString( ); arrOUS[3] = new OString( "" ); - arrOUS[4] = new OString( "\0" ); + arrOUS[4] = new OString( "\0", 1 ); arrOUS[5] = new OString( kTestStr2 ); } @@ -992,7 +992,7 @@ namespace rtl_OStringBuffer arrOUS[1] = new OString( "1" ); arrOUS[2] = new OString( ); arrOUS[3] = new OString( "" ); - arrOUS[4] = new OString( "\0" ); + arrOUS[4] = new OString( "\0", 1 ); arrOUS[5] = new OString( kTestStr2 ); } |