summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-25 11:22:40 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-25 11:22:40 +0000
commit56116604cb246c85718fd43f87f03f520231dc33 (patch)
tree60d3b5f90e8a239a6679ee26b97a9e6020ac0281
parent1da92ff87a102bdd07dc284d24975af5cef34ed3 (diff)
INTEGRATION: CWS tl32 (1.20.8); FILE MERGED
2006/12/20 12:51:11 tl 1.20.8.2: #i69286# warning-free code 2006/12/20 12:00:38 tl 1.20.8.1: #140479# warning-free code
-rw-r--r--linguistic/source/hyphdsp.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/hyphdsp.cxx b/linguistic/source/hyphdsp.cxx
index 76675fe37b49..66993512171c 100644
--- a/linguistic/source/hyphdsp.cxx
+++ b/linguistic/source/hyphdsp.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: hyphdsp.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 03:53:30 $
+ * last change: $Author: vg $ $Date: 2007-05-25 12:22:40 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -189,9 +189,9 @@ Reference<XHyphenatedWord> HyphenatorDispatcher::buildHyphWord(
aShorter = rOrigWord;
aLonger = aText;
}
- xub_StrLen nS = aShorter.getLength();
- xub_StrLen nL = aLonger.getLength();
- if (nS > 0)
+ xub_StrLen nS = sal::static_int_cast< xub_StrLen >( aShorter.getLength() );
+ xub_StrLen nL = sal::static_int_cast< xub_StrLen >( aLonger.getLength() );
+ if (nS > 0 && nL > 0)
{
DBG_ASSERT( (nS + 1 == nL) && aLonger[nL-1] == (sal_Unicode) '.',
"HyphenatorDispatcher::buildHyphWord: unexpected difference between words!" );