summaryrefslogtreecommitdiff
path: root/comphelper/test
diff options
context:
space:
mode:
authorKevin Hunter <hunteke@earlham.edu>2010-11-19 15:13:10 -0500
committerDavid Tardon <dtardon@redhat.com>2010-11-20 07:45:53 +0100
commit6fb8e13b45e018202fd62142bde7fc022e906ed7 (patch)
tree5e15dd03ab77e3f607164e864c5b74e73ccc955b /comphelper/test
parentda041554995bb7e98e9564b3cf3252c4a50d4673 (diff)
EasyHack: RTL conversion from createFromAscii
Diffstat (limited to 'comphelper/test')
-rw-r--r--comphelper/test/uno_iterators/uno_iterators.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/test/uno_iterators/uno_iterators.cxx b/comphelper/test/uno_iterators/uno_iterators.cxx
index c2106068ff46..b1021fe8493a 100644
--- a/comphelper/test/uno_iterators/uno_iterators.cxx
+++ b/comphelper/test/uno_iterators/uno_iterators.cxx
@@ -135,7 +135,7 @@ void stl_conversions()
// convert to stl::vector, modify in vector, copy back, print
cout << "vector conversion" << endl;
vector<OUString> vec(stl_s.begin(), stl_s.end());
- vec[2] = OUString::createFromAscii("changed in vector");
+ vec[2] = OUString( RTL_CONSTASCII_USTRINGPARAM( "changed in vector" ));
copy(vec.begin(), vec.end(), stl_s.begin());
print_sequence(s);
@@ -143,7 +143,7 @@ void stl_conversions()
cout << "list conversion" << endl;
list<OUString> l(stl_s.begin(), stl_s.end());
l.pop_back();
- l.push_back(OUString::createFromAscii("changed in list"));
+ l.push_back(OUString( RTL_CONSTASCII_USTRINGPARAM( "changed in list" )));
copy(l.begin(), l.end(), stl_s.begin());
print_sequence(s);
}
@@ -174,7 +174,7 @@ void stl_compare()
StlUnoSequence<OUString> stl_s2 = StlUnoSequence<OUString>::createInstance(s2);
if (stl_s1 == stl_s2)
cout << "sequences are equal." << endl;
- s2[9] = OUString::createFromAscii("ZZZZZ");
+ s2[9] = OUString( RTL_CONSTASCII_USTRINGPARAM( "ZZZZZ" ));
if(stl_s1 < stl_s2)
cout << "first sequence is smaller." << endl;
}