summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/inputhdl.cxx8
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index cf60045ed..93ce00fc9 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -739,7 +739,7 @@ void ScInputHandler::ShowTipCursor()
if( ppFDesc->getFunctionName().getLength() )
{
nArgPos = aHelper.GetArgStart( aSelText, nNextFStart, 0 );
- nArgs = ppFDesc->getParameterCount();
+ nArgs = (USHORT)ppFDesc->getParameterCount();
USHORT nActive = 0;
USHORT nCount = 0;
@@ -754,7 +754,7 @@ void ScInputHandler::ShowTipCursor()
{
for( USHORT i=0; i < nArgs; i++ )
{
- xub_StrLen nLength=aArgs[i].getLength();
+ xub_StrLen nLength= (USHORT)aArgs[i].getLength();
if( nArgPos <= aSelText.Len()-1 )
{
nActive = i+1;
@@ -977,7 +977,7 @@ void ScInputHandler::UseFormulaData()
{
{
nArgPos = aHelper.GetArgStart( aFormula, nNextFStart, 0 );
- nArgs = ppFDesc->getParameterCount();
+ nArgs = (USHORT)ppFDesc->getParameterCount();
USHORT nActive = 0;
USHORT nCount = 0;
@@ -992,7 +992,7 @@ void ScInputHandler::UseFormulaData()
{
for( USHORT i=0; i < nArgs; i++ )
{
- xub_StrLen nLength=aArgs[i].getLength();
+ xub_StrLen nLength= (USHORT)aArgs[i].getLength();
if( nArgPos <= aFormula.Len()-1 )
{
nActive = i+1;
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 10552789e..58d5c0cc1 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -622,7 +622,7 @@ SCsTAB ScExternalRefCache::getTabSpan( sal_uInt16 nFileId, const String& rStartT
size_t nStartDist = ::std::distance( itrBeg, itrStartTab);
size_t nEndDist = ::std::distance( itrBeg, itrEndTab);
- return nStartDist <= nEndDist ? nEndDist - nStartDist + 1 : -(nStartDist - nEndDist + 1);
+ return nStartDist <= nEndDist ? (SCsTAB)(nEndDist - nStartDist + 1) : -(SCsTAB)(nStartDist - nEndDist + 1);
}
void ScExternalRefCache::getAllNumberFormats(vector<sal_uInt32>& rNumFmts) const