From 01fc6acdf2aa836bdb54cae48fd5b89a7313c094 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 20 Jan 2014 12:12:11 +0200 Subject: WaE: comparison between signed and unsigned integer expressions Change-Id: I64c869fbc89ca18a4cc0f7f2a7a8f9d729c7a66d --- writerfilter/source/dmapper/FontTable.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'writerfilter/source/dmapper/FontTable.cxx') diff --git a/writerfilter/source/dmapper/FontTable.cxx b/writerfilter/source/dmapper/FontTable.cxx index 89ef2f5c81a0..f40c478c0a58 100644 --- a/writerfilter/source/dmapper/FontTable.cxx +++ b/writerfilter/source/dmapper/FontTable.cxx @@ -64,11 +64,11 @@ void FontTable::lcl_attribute(Id Name, Value & val) switch(Name) { case NS_ooxml::LN_CT_Pitch_val: - if (nIntValue == NS_ooxml::LN_Value_ST_Pitch_fixed) + if (static_cast(nIntValue) == NS_ooxml::LN_Value_ST_Pitch_fixed) m_pImpl->pCurrentEntry->nPitchRequest = awt::FontPitch::FIXED; - else if (nIntValue == NS_ooxml::LN_Value_ST_Pitch_variable) + else if (static_cast(nIntValue) == NS_ooxml::LN_Value_ST_Pitch_variable) m_pImpl->pCurrentEntry->nPitchRequest = awt::FontPitch::VARIABLE; - else if (nIntValue == NS_ooxml::LN_Value_ST_Pitch_default) + else if (static_cast(nIntValue) == NS_ooxml::LN_Value_ST_Pitch_default) m_pImpl->pCurrentEntry->nPitchRequest = awt::FontPitch::DONTKNOW; else SAL_WARN("writerfilter", "FontTable::lcl_attribute: unhandled NS_ooxml::CT_Pitch_val: " << nIntValue); -- cgit