summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-04 16:20:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-04 16:21:31 +0000
commitc1ea4a0dd92de814c8f07d06bd39a59f8b33a920 (patch)
treed9f1ba77a3a3b4b71ae365707f8e878be4fbe59e /formula/source
parent8cc32a8e464c26a479f45dd2d9bf0c4df261e572 (diff)
help out clang
Change-Id: I21c1f43f4e0c339c57fa0f8f177eac8811ea0a4e
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index cda306e51460..f5b1b9af25f7 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -515,7 +515,7 @@ void FormulaCompiler::OpCodeMap::putOpCode( const OUString & rStr, const OpCode
SAL_WARN_IF( !(mpTable[eOp].isEmpty() || (mpTable[eOp] == rStr) ||
(eOp == ocCurrency) || (eOp == ocSep) || (eOp == ocArrayColSep) ||
(eOp == ocArrayRowSep)), "formula.core",
- "OpCodeMap::putOpCode: reusing OpCode " << eOp
+ "OpCodeMap::putOpCode: reusing OpCode " << static_cast<sal_uInt16>(eOp)
<< ", replacing '" << mpTable[eOp] << "' with '" << rStr << "' in "
<< (mbEnglish ? "" : "non-") << "English map 0x" << ::std::hex << meGrammar);
mpTable[eOp] = rStr;
@@ -877,7 +877,8 @@ FormulaCompiler::OpCodeMap::~OpCodeMap()
void FormulaCompiler::OpCodeMap::putCopyOpCode( const OUString& rSymbol, OpCode eOp )
{
SAL_WARN_IF( !mpTable[eOp].isEmpty() && rSymbol.isEmpty(), "formula.core",
- "OpCodeMap::putCopyOpCode: NOT replacing OpCode " << eOp << " '" << mpTable[eOp] << "' with empty name!");
+ "OpCodeMap::putCopyOpCode: NOT replacing OpCode " << static_cast<sal_uInt16>(eOp)
+ << " '" << mpTable[eOp] << "' with empty name!");
if (!mpTable[eOp].isEmpty() && rSymbol.isEmpty())
mpHashMap->insert( OpCodeHashMap::value_type( mpTable[eOp], eOp));
else