diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-04-21 20:00:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-04-21 20:00:23 +0200 |
commit | 9fda7a919f31a192b9bd2938139b6566b7fc2935 (patch) | |
tree | 600e882f7174bc28ba79dc853aca043fa57f3539 | |
parent | 22eb78b6eee38e11aec32909b6983becb309ce13 (diff) |
rtftok: try to make tinderboxes happy
-rw-r--r-- | writerfilter/source/rtftok/rtfcontrolwords.cxx | 12 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfcontrolwords.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtftokenizer.cxx | 3 |
3 files changed, 2 insertions, 15 deletions
diff --git a/writerfilter/source/rtftok/rtfcontrolwords.cxx b/writerfilter/source/rtftok/rtfcontrolwords.cxx index 11c4d3d7f6f0..516a9b82d379 100644 --- a/writerfilter/source/rtftok/rtfcontrolwords.cxx +++ b/writerfilter/source/rtftok/rtfcontrolwords.cxx @@ -1862,18 +1862,6 @@ bool RTFSymbol::operator<(const RTFSymbol& rOther) const return strcmp(sKeyword, rOther.sKeyword) < 0; } -RTFSymbol::RTFSymbol(const char* pKeyword) - : sKeyword(pKeyword) -{ -} - -RTFSymbol::RTFSymbol(const char *pKeyword, int pControlType, RTFKeyword pIndex) - : sKeyword(pKeyword), - nControlType(pControlType), - nIndex(pIndex) -{ -} - } // namespace rtftok } // namespace writerfilter diff --git a/writerfilter/source/rtftok/rtfcontrolwords.hxx b/writerfilter/source/rtftok/rtfcontrolwords.hxx index 477ddb5fb062..108898209636 100644 --- a/writerfilter/source/rtftok/rtfcontrolwords.hxx +++ b/writerfilter/source/rtftok/rtfcontrolwords.hxx @@ -1868,8 +1868,6 @@ struct RTFSymbol RTFKeyword nIndex; bool operator<(const RTFSymbol& rOther) const; - RTFSymbol(const char* pKeyword); - RTFSymbol(const char *pKeyword, int pControlType, RTFKeyword pIndex); }; extern RTFSymbol aRTFControlWords[]; diff --git a/writerfilter/source/rtftok/rtftokenizer.cxx b/writerfilter/source/rtftok/rtftokenizer.cxx index b40a91261664..709bb30a29db 100644 --- a/writerfilter/source/rtftok/rtftokenizer.cxx +++ b/writerfilter/source/rtftok/rtftokenizer.cxx @@ -268,7 +268,8 @@ int RTFTokenizer::dispatchKeyword(OString& rKeyword, bool bParam, int nParam) return 0; /*SAL_INFO("writefilter", OSL_THIS_FUNC << ": keyword '\\" << rKeyword.getStr() << "' with param? " << (bParam ? 1 : 0) <<" param val: '" << (bParam ? nParam : 0) << "'");*/ - RTFSymbol aSymbol(rKeyword.getStr()); + RTFSymbol aSymbol; + aSymbol.sKeyword = rKeyword.getStr(); std::vector<RTFSymbol>::iterator low = std::lower_bound(m_aRTFControlWords.begin(), m_aRTFControlWords.end(), aSymbol); int i = low - m_aRTFControlWords.begin(); if (low == m_aRTFControlWords.end() || aSymbol < *low) |