[Libreoffice-commits] core.git: sw/qa writerfilter/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Jun 4 01:15:01 PDT 2014
sw/qa/extras/rtfimport/rtfimport.cxx | 3 +--
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 10 ++++------
2 files changed, 5 insertions(+), 8 deletions(-)
New commits:
commit 5a7e4766ca1ae20c6683bb7424f08fc9698ae9b7
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Jun 4 10:06:58 2014 +0200
RTFDocumentImpl::dispatchValue: fix indentation
Change-Id: I521462315ebe8b69b65e05df98042e7a33d60dbb
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 1654922..1829490 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -294,8 +294,7 @@ DECLARE_RTFIMPORT_TEST(testFdo79384, "fdo79384.rtf")
{
uno::Reference<text::XTextRange> xTextRange = getRun(getParagraph(1), 1);
- CPPUNIT_ASSERT_EQUAL(OUString("ÐаÑкеÑÑ ÑпиÑкамЫ", 31, RTL_TEXTENCODING_UTF8),
- xTextRange->getString());
+ CPPUNIT_ASSERT_EQUAL(OUString("ÐаÑкеÑÑ ÑпиÑкамЫ", 31, RTL_TEXTENCODING_UTF8), xTextRange->getString());
}
DECLARE_RTFIMPORT_TEST(testFdo47326, "fdo47326.rtf")
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 0758ee7..b45fd3e 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -986,8 +986,7 @@ int RTFDocumentImpl::resolveChars(char ch)
{
// fdo#79384: Word will reject Shift-JIS following \loch
// but apparently OOo could read and (worse) write such documents
- SAL_INFO_IF(m_aStates.top().eRunType != RTFParserState::DBCH,
- "writerfilter.rtf", "invalid Shift-JIS without DBCH");
+ SAL_INFO_IF(m_aStates.top().eRunType != RTFParserState::DBCH, "writerfilter.rtf", "invalid Shift-JIS without DBCH");
unsigned char uch = ch;
if ((uch >= 0x80 && uch <= 0x9F) || uch >= 0xE0)
{
@@ -3495,8 +3494,7 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
{
case RTF_F:
case RTF_AF:
- if (m_aStates.top().isRightToLeft
- || m_aStates.top().eRunType == RTFParserState::HICH)
+ if (m_aStates.top().isRightToLeft || m_aStates.top().eRunType == RTFParserState::HICH)
{
nSprm = NS_ooxml::LN_CT_Fonts_cs;
}
@@ -3521,8 +3519,8 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam)
RTFSprms aRunPropsSprms;
aRunPropsSprms.set(NS_ooxml::LN_EG_RPrBase_rFonts, RTFValue::Pointer_t(new RTFValue(aFontAttributes)));
m_aStates.top().aTableSprms.set(NS_ooxml::LN_CT_Lvl_rPr,
- RTFValue::Pointer_t(new RTFValue(RTFSprms(), aRunPropsSprms)),
- OVERWRITE_NO_APPEND);
+ RTFValue::Pointer_t(new RTFValue(RTFSprms(), aRunPropsSprms)),
+ OVERWRITE_NO_APPEND);
}
else
{
More information about the Libreoffice-commits
mailing list