diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-24 11:27:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-26 10:18:39 +0100 |
commit | 0345310ec2cf0cf6a6b3864f36e7e8dfee6f0bf5 (patch) | |
tree | edb923b0070bfdb04be5dbe04a16a956b8eb9eaf /sw | |
parent | ByteString->rtl::OStringBuffer (diff) | |
download | core-0345310ec2cf0cf6a6b3864f36e7e8dfee6f0bf5.tar.gz core-0345310ec2cf0cf6a6b3864f36e7e8dfee6f0bf5.zip |
disambiguate ctor
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/swdoc-test.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/core/swdoc-test.cxx b/sw/qa/core/swdoc-test.cxx index 6c910953a09f..4216b0c12f17 100644 --- a/sw/qa/core/swdoc-test.cxx +++ b/sw/qa/core/swdoc-test.cxx @@ -313,7 +313,8 @@ getRandString() "AAAAA BBBB CCC DD E \n")); int s = getRand(aText.getLength()); int j = getRand(aText.getLength() - s); - rtl::OUString aRet(aText + s, j); + const sal_Unicode *pStr = aText.getStr(); + rtl::OUString aRet(pStr + s, j); if (!getRand(5)) aRet += rtl::OUString(sal_Unicode('\n')); // fprintf (stderr, "rand string '%s'\n", OUStringToOString(aRet, RTL_TEXTENCODING_UTF8).getStr()); |