summaryrefslogtreecommitdiffstats
path: root/filter/source/msfilter/rtfutil.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:15:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:25 +0100
commit3cdda9af2c12a9ae2a1f0bdf8ca898f1f5c69bfb (patch)
treeba25525cbc9661509d8f01e93164e0febb8a0894 /filter/source/msfilter/rtfutil.cxx
parentloplugin:nullptr (automatic rewrite) (diff)
downloadcore-3cdda9af2c12a9ae2a1f0bdf8ca898f1f5c69bfb.tar.gz
core-3cdda9af2c12a9ae2a1f0bdf8ca898f1f5c69bfb.zip
loplugin:nullptr (automatic rewrite)
Change-Id: I61e494952df8cc40fff3ccad0936adf06035dbeb
Diffstat (limited to 'filter/source/msfilter/rtfutil.cxx')
-rw-r--r--filter/source/msfilter/rtfutil.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/rtfutil.cxx b/filter/source/msfilter/rtfutil.cxx
index f833fb13e288..e5c07e364e33 100644
--- a/filter/source/msfilter/rtfutil.cxx
+++ b/filter/source/msfilter/rtfutil.cxx
@@ -42,7 +42,7 @@ OString OutChar(sal_Unicode c, int* pUCMode, rtl_TextEncoding eDestEnc, bool* pS
if (pSuccess)
*pSuccess = true;
OStringBuffer aBuf;
- const sal_Char* pStr = 0;
+ const sal_Char* pStr = nullptr;
// 0x0b instead of \n, etc because of the replacements in SwWW8AttrIter::GetSnippet()
switch (c)
{
@@ -127,7 +127,7 @@ OString OutString(const OUString& rStr, rtl_TextEncoding eDestEnc, bool bUnicode
OStringBuffer aBuf;
int nUCMode = 1;
for (sal_Int32 n = 0; n < rStr.getLength(); ++n)
- aBuf.append(OutChar(rStr[n], &nUCMode, eDestEnc, 0, bUnicode));
+ aBuf.append(OutChar(rStr[n], &nUCMode, eDestEnc, nullptr, bUnicode));
if (nUCMode != 1)
{
aBuf.append(OOO_STRING_SVTOOLS_RTF_UC);