diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-03-23 12:52:31 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-03-23 12:56:18 +0200 |
commit | d2a8991423506c64c027dc0dda49b08e56ca6acc (patch) | |
tree | 5e1c838b31a2436bcba9a49977ca1cbc4ac4e620 | |
parent | 9450d7e7089aab4b14a669bf947cc34ae0f6b892 (diff) |
WaE: comparison between signed and unsigned integer expressions
Change-Id: Ia5c5b1926a73c54a38662b5ac737dbe1ff3cef50
-rw-r--r-- | sw/source/core/edit/edtab.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/cellfml.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edtab.cxx b/sw/source/core/edit/edtab.cxx index c334ee4bd6e8..8d5bbc71064c 100644 --- a/sw/source/core/edit/edtab.cxx +++ b/sw/source/core/edit/edtab.cxx @@ -393,7 +393,7 @@ bool SwEditShell::IsTableBoxTextFormat() const { nFmt = static_cast<const SwTblBoxNumFormat*>(pItem)->GetValue(); return GetDoc()->GetNumberFormatter()->IsTextFormat( nFmt ) || - css::util::NumberFormat::TEXT == nFmt; + static_cast<sal_uInt32>(css::util::NumberFormat::TEXT) == nFmt; } sal_uLong nNd = pBox->IsValidNumTxtNd(); diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx index 7b18c5322c84..2b0b6861de6b 100644 --- a/sw/source/core/fields/cellfml.cxx +++ b/sw/source/core/fields/cellfml.cxx @@ -217,7 +217,7 @@ double SwTableBox::GetValue( SwTblCalcPara& rCalcPara ) const SvNumberFormatter* pNumFmtr = pDoc->GetNumberFormatter(); - if( css::util::NumberFormat::TEXT == nFmtIndex ) + if( static_cast<sal_uInt32>(css::util::NumberFormat::TEXT) == nFmtIndex ) nFmtIndex = 0; // JP 22.04.98: Bug 49659 - special treatment for percentages else if( !sTxt.isEmpty() && |