summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/FontTable.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-20 12:12:11 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-20 12:12:35 +0200
commit01fc6acdf2aa836bdb54cae48fd5b89a7313c094 (patch)
tree3f4486259856e51f90156efd10436447445afb2e /writerfilter/source/dmapper/FontTable.cxx
parent1cf4fd9f55b950991672428257d7242b234edc30 (diff)
WaE: comparison between signed and unsigned integer expressions
Change-Id: I64c869fbc89ca18a4cc0f7f2a7a8f9d729c7a66d
Diffstat (limited to 'writerfilter/source/dmapper/FontTable.cxx')
-rw-r--r--writerfilter/source/dmapper/FontTable.cxx6
1 files changed, 3 insertions, 3 deletions
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<Id>(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<Id>(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<Id>(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);