diff --git a/sw/inc/pagepreviewlayout.hxx b/sw/inc/pagepreviewlayout.hxx index e7340ca19cfd..21bff253382a 100644 --- a/sw/inc/pagepreviewlayout.hxx +++ b/sw/inc/pagepreviewlayout.hxx @@ -624,7 +624,7 @@ public: @author FME */ - sal_uInt16 GetNumberOfPreviewPages() { return maPrevwPages.size(); } + sal_uInt16 GetNumberOfPreviewPages() { return sal::static_int_cast< sal_uInt16 >(maPrevwPages.size()); } }; #endif // _PAGEPREVIEWLAYOUT_HXX