summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/propcontroller.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:24:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:24:28 +0100
commit32bd0425cc53bab05f7ab03252b37ccd6abc7dda (patch)
tree2c92daf8afd33c605525a90e81fee60734cfc327 /extensions/source/propctrlr/propcontroller.cxx
parentc578d1c81274a1c0e5bdbdf5654bb4e186afdf49 (diff)
More loplugin:cstylecast: extensions
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: If5cd78704f10a98524a113c67cdc09529f745c74
Diffstat (limited to 'extensions/source/propctrlr/propcontroller.cxx')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 7e6c7419aa6e..539e5be292d6 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -634,7 +634,7 @@ namespace pcr
m_sPageSelection.clear();
const sal_uInt16 nCurrentPage = m_pView->getActivaPage();
- if ( (sal_uInt16)-1 != nCurrentPage )
+ if ( sal_uInt16(-1) != nCurrentPage )
{
for ( HashString2Int16::const_iterator pageId = m_aPageIds.begin();
pageId != m_aPageIds.end();
@@ -658,7 +658,7 @@ namespace pcr
sal_uInt16 OPropertyBrowserController::impl_getPageIdForCategory_nothrow( const OUString& _rCategoryName ) const
{
- sal_uInt16 nPageId = (sal_uInt16)-1;
+ sal_uInt16 nPageId = sal_uInt16(-1);
HashString2Int16::const_iterator pagePos = m_aPageIds.find( _rCategoryName );
if ( pagePos != m_aPageIds.end() )
nPageId = pagePos->second;
@@ -670,7 +670,7 @@ namespace pcr
{
sal_uInt16 nNewPage = impl_getPageIdForCategory_nothrow( m_sPageSelection );
- if ( haveView() && ( nNewPage != (sal_uInt16)-1 ) )
+ if ( haveView() && ( nNewPage != sal_uInt16(-1) ) )
m_pView->activatePage( nNewPage );
// just in case ...
@@ -1204,7 +1204,7 @@ namespace pcr
<< property->second.Name << "'!");
// finally insert this property control
sal_uInt16 nTargetPageId = impl_getPageIdForCategory_nothrow( aDescriptor.Category );
- if ( nTargetPageId == (sal_uInt16)-1 )
+ if ( nTargetPageId == sal_uInt16(-1) )
{
// this category does not yet exist. This is allowed, as an inspector model might be lazy, and not provide
// any category information of its own. In this case, we have a fallback ...
@@ -1627,7 +1627,7 @@ namespace pcr
throw RuntimeException();
sal_uInt16 nPageId = impl_getPageIdForCategory_nothrow( _rCategory );
- OSL_ENSURE( nPageId != (sal_uInt16)-1, "OPropertyBrowserController::showCategory: invalid category!" );
+ OSL_ENSURE( nPageId != sal_uInt16(-1), "OPropertyBrowserController::showCategory: invalid category!" );
getPropertyBox().ShowPropertyPage( nPageId, _bShow );
}