diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-15 14:35:50 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-17 21:47:38 +0200 |
commit | 9af8964dd2cb048e328732ee6eb809b0da46a3ae (patch) | |
tree | 1f863b2e15beb4808cfb9c2aa6aeb0e651854cfb /sal/textenc/convertiso2022jp.cxx | |
parent | 2cbd4121685b5c2f2cfddea6775171aaee72a4c1 (diff) |
RTL_UNICODETOTEXT_INFO_{DEST|SCR}BUFFERTOSMALL should use TOO, not TO
I have kept the old mispelled constant for backwards compatibility
Change-Id: I128a2eec76d00cc5ef058cd6a0c35a7474d2411e
Reviewed-on: https://gerrit.libreoffice.org/39995
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'sal/textenc/convertiso2022jp.cxx')
-rw-r--r-- | sal/textenc/convertiso2022jp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/textenc/convertiso2022jp.cxx b/sal/textenc/convertiso2022jp.cxx index bb89509e2e69..7a7e6b675add 100644 --- a/sal/textenc/convertiso2022jp.cxx +++ b/sal/textenc/convertiso2022jp.cxx @@ -261,17 +261,17 @@ sal_Size ImplConvertIso2022JpToUnicode(void const * pData, no_output: --pSrcBuf; - nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL; + nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL; break; } if (eState > IMPL_ISO_2022_JP_TO_UNICODE_STATE_0208 && (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR - | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL)) + | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL)) == 0) { if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0) - nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL; + nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL; else switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion( false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd, @@ -283,7 +283,7 @@ sal_Size ImplConvertIso2022JpToUnicode(void const * pData, break; case sal::detail::textenc::BAD_INPUT_NO_OUTPUT: - nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL; + nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL; break; } } |