diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-16 16:27:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 11:25:21 +0200 |
commit | 2e8acde112e1c6754df26902e79a78346ba45a2d (patch) | |
tree | 2d836747a7aafdd0b64ab9aabf01be59e94745d4 /xmloff/source | |
parent | 006a7b50546c57e260245d4630de565705f2fc38 (diff) |
remove UL/L suffixes from integer constants on the RHS of expressions
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5
Reviewed-on: https://gerrit.libreoffice.org/41237
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/core/nmspmap.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/core/unoatrcn.cxx | 12 | ||||
-rw-r--r-- | xmloff/source/draw/xexptran.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/fonthdl.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparai.cxx | 4 |
7 files changed, 18 insertions, 18 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx index 47d6e07ebec4..441b4c53bde0 100644 --- a/xmloff/source/core/nmspmap.cxx +++ b/xmloff/source/core/nmspmap.cxx @@ -308,7 +308,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName_( const OUString& rAttrName, rtl::Reference<NameSpaceEntry> xEntry(new NameSpaceEntry); sal_Int32 nColonPos = rAttrName.indexOf( ':' ); - if( -1L == nColonPos ) + if( -1 == nColonPos ) { // case: no ':' found -> default namespace (xEntry->sPrefix).clear(); @@ -318,7 +318,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName_( const OUString& rAttrName, { // normal case: ':' found -> get prefix/suffix xEntry->sPrefix = rAttrName.copy( 0L, nColonPos ); - xEntry->sName = rAttrName.copy( nColonPos + 1L ); + xEntry->sName = rAttrName.copy( nColonPos + 1 ); } if( pPrefix ) @@ -337,7 +337,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByAttrName_( const OUString& rAttrName, else if ( xEntry->sPrefix == sXMLNS ) // not found, but xmlns prefix: return xmlns 'namespace' nKey = xEntry->nKey = XML_NAMESPACE_XMLNS; - else if( nColonPos == -1L ) + else if( nColonPos == -1 ) // not found, and no namespace: 'namespace' none nKey = xEntry->nKey = XML_NAMESPACE_NONE; else diff --git a/xmloff/source/core/unoatrcn.cxx b/xmloff/source/core/unoatrcn.cxx index df18d1f91543..8ab927f9ce3d 100644 --- a/xmloff/source/core/unoatrcn.cxx +++ b/xmloff/source/core/unoatrcn.cxx @@ -63,7 +63,7 @@ sal_uInt16 SvUnoAttributeContainer::getIndexByName(const OUString& aName ) const const sal_uInt16 nAttrCount = mpContainer->GetAttrCount(); sal_Int32 nPos = aName.indexOf( ':' ); - if( nPos == -1L ) + if( nPos == -1 ) { for( sal_uInt16 nAttr = 0; nAttr < nAttrCount; nAttr++ ) { @@ -75,7 +75,7 @@ sal_uInt16 SvUnoAttributeContainer::getIndexByName(const OUString& aName ) const else { const OUString aPrefix( aName.copy( 0L, nPos ) ); - const OUString aLName( aName.copy( nPos+1L ) ); + const OUString aLName( aName.copy( nPos+1 ) ); for( sal_uInt16 nAttr = 0; nAttr < nAttrCount; nAttr++ ) { @@ -158,10 +158,10 @@ void SAL_CALL SvUnoAttributeContainer::replaceByName(const OUString& aName, cons throw container::NoSuchElementException(); sal_Int32 nPos = aName.indexOf( ':' ); - if( nPos != -1L ) + if( nPos != -1 ) { const OUString aPrefix( aName.copy( 0L, nPos )); - const OUString aLName( aName.copy( nPos+1L )); + const OUString aLName( aName.copy( nPos+1 )); if( pData->Namespace.isEmpty() ) { @@ -199,10 +199,10 @@ void SAL_CALL SvUnoAttributeContainer::insertByName(const OUString& aName, const throw container::ElementExistException(); sal_Int32 nPos = aName.indexOf( ':' ); - if( nPos != -1L ) + if( nPos != -1 ) { const OUString aPrefix( aName.copy( 0L, nPos )); - const OUString aLName( aName.copy( nPos+1L )); + const OUString aLName( aName.copy( nPos+1 )); if( pData->Namespace.isEmpty() ) { diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index afa03e0857cb..efbb82111ac8 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -330,7 +330,7 @@ const OUString& SdXMLImExTransform2D::GetExportString(const SvXMLUnitConverter& } // if not the last entry, add one space to next tag - if(a + 1UL != maList.size()) + if(a + 1 != maList.size()) { aNewString += aEmptySpace; } @@ -736,7 +736,7 @@ const OUString& SdXMLImExTransform3D::GetExportString(const SvXMLUnitConverter& } // if not the last entry, add one space to next tag - if(a + 1UL != maList.size()) + if(a + 1 != maList.size()) { aNewString += aEmptySpace; } diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx index a04f4c1b8d26..0f0caa3446f8 100644 --- a/xmloff/source/style/fonthdl.cxx +++ b/xmloff/source/style/fonthdl.cxx @@ -127,13 +127,13 @@ bool XMLFontFamilyNamePropHdl::exportXML( OUString& rStrExpValue, const uno::Any // Set position to the character behind the ';', so we won't // forget this. - if( -1L != nPos ) + if( -1 != nPos ) nPos++; // If the property value was empty, we stop now. // If there is a ';' at the first position, the empty name // at the start will be removed. - if( 0L == nLast ) + if( 0 == nLast ) continue; // nFirst and nLast now denote the first and last character of @@ -174,7 +174,7 @@ bool XMLFontFamilyNamePropHdl::exportXML( OUString& rStrExpValue, const uno::Any sValue.append( '\'' ); } } - while( -1L != nPos ); + while( -1 != nPos ); rStrExpValue = sValue.makeStringAndClear(); diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index 5e9429e1232d..eef7317cd281 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -301,7 +301,7 @@ SvxXMLListLevelStyleContext_Impl::SvxXMLListLevelStyleContext_Impl( { case XML_TOK_TEXT_LEVEL_ATTR_LEVEL: nLevel = rValue.toInt32(); - if( nLevel >= 1L ) + if( nLevel >= 1 ) nLevel--; else nLevel = 0; diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index b8f4f09d7e0b..1abc10f0095b 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -770,7 +770,7 @@ OUString XMLTextParagraphExport::FindTextStyleAndHyperlink( ppAddStates++; } } - if( (aPropStates.size() - nIgnoreProps) > 0L ) + if( (aPropStates.size() - nIgnoreProps) > 0 ) { // erase the character style, otherwise the autostyle cannot be found! // erase the hyperlink, otherwise the autostyle cannot be found! diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index f960ef371379..b52f9f45061d 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -117,7 +117,7 @@ XMLCharContext::XMLCharContext( IsXMLToken( aLocalName, XML_C ) ) { sal_Int32 nTmp = xAttrList->getValueByIndex(i).toInt32(); - if( nTmp > 0L ) + if( nTmp > 0 ) { if( nTmp > USHRT_MAX ) m_nCount = USHRT_MAX; @@ -1829,7 +1829,7 @@ XMLParaContext::XMLParaContext( case XML_TOK_TEXT_P_LEVEL: { sal_Int32 nTmp = rValue.toInt32(); - if( nTmp > 0L ) + if( nTmp > 0 ) { if( nTmp > 127 ) nTmp = 127; |