WaE - add explicit casting (decimal-types → integer types)
This commit is contained in:
@@ -276,7 +276,7 @@ AnimationParametricFunction::AnimationParametricFunction (const ParametricFuncti
|
||||
|
||||
double AnimationParametricFunction::operator() (const double nX)
|
||||
{
|
||||
const sal_Int32 nIndex0 (nX * maY.size());
|
||||
const sal_Int32 nIndex0 (static_cast<sal_Int32>(nX * maY.size()));
|
||||
const double nX0 (nIndex0 / double(maY.size()-1));
|
||||
const sal_uInt32 nIndex1 (nIndex0 + 1);
|
||||
const double nX1 (nIndex1 / double(maY.size()-1));
|
||||
|
@@ -195,7 +195,7 @@ void ScrollBarManager::PlaceVerticalScrollBar (const Rectangle& aArea)
|
||||
mpVerticalScrollBar->SetPosSizePixel(aPosition, aSize);
|
||||
|
||||
// Restore the position.
|
||||
mpVerticalScrollBar->SetThumbPos(nThumbPosition);
|
||||
mpVerticalScrollBar->SetThumbPos(static_cast<long>(nThumbPosition));
|
||||
mnVerticalPosition = nThumbPosition / double(mpVerticalScrollBar->GetRange().Len());
|
||||
}
|
||||
|
||||
|
@@ -155,7 +155,7 @@ namespace {
|
||||
for (sal_Int32 nX = 0; nX<nWidth; ++nX)
|
||||
{
|
||||
const sal_uInt8 nValue (255 - pSourceBitmap->GetPixel(nY, nX).GetBlueOrIndex());
|
||||
const sal_uInt8 nNewValue (nValue * (1-nAlpha));
|
||||
const sal_uInt8 nNewValue (static_cast<sal_uInt8>(nValue * (1-nAlpha)));
|
||||
pBitmap->SetPixel(nY, nX, 255-nNewValue);
|
||||
}
|
||||
}
|
||||
@@ -756,8 +756,8 @@ void ButtonBar::StartFadeAnimation (
|
||||
::boost::ref(mrSlideSorter.GetView()),
|
||||
::boost::bind(aButtonBlendFunctor, _1),
|
||||
::boost::bind(aButtonBarBlendFunctor, _1)),
|
||||
nDelay,
|
||||
nDuration,
|
||||
static_cast<sal_Int32>(nDelay),
|
||||
static_cast<sal_Int32>(nDuration),
|
||||
::boost::bind(
|
||||
&model::VisualState::SetButtonAlphaAnimationId,
|
||||
::boost::ref(pDescriptor->GetVisualState()),
|
||||
|
@@ -1158,7 +1158,7 @@ bool SlideImpl::loadShapes()
|
||||
}
|
||||
addPolygons(aMPShapesFunctor.getPolygons());
|
||||
|
||||
nCurrCount = aMPShapesFunctor.getImportedShapesCount();
|
||||
nCurrCount = static_cast<sal_Int32>(aMPShapesFunctor.getImportedShapesCount());
|
||||
}
|
||||
catch( uno::RuntimeException& )
|
||||
{
|
||||
|
Reference in New Issue
Block a user