summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-07 08:12:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-07 08:12:26 +0200
commit5665259f2d7d696ce5e0566e367c7cf8420fe04d (patch)
treeb799a6df188cacc9d11dfeedf30082c73237fd78 /vcl
parent4535203c07559215a810f7252b3f250a7e7e1813 (diff)
loplugin:unnecessaryparen
Change-Id: I9496cafef840195e3934bf92600d4e8c8edb6c26
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/osx/salprn.h4
-rw-r--r--vcl/osx/a11ytextattributeswrapper.mm2
-rw-r--r--vcl/osx/salframeview.mm2
-rw-r--r--vcl/osx/salinst.cxx2
-rw-r--r--vcl/quartz/ctfonts.cxx2
-rw-r--r--vcl/quartz/salbmp.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/vcl/inc/osx/salprn.h b/vcl/inc/osx/salprn.h
index 78afec3b02fb..86e04bb548dd 100644
--- a/vcl/inc/osx/salprn.h
+++ b/vcl/inc/osx/salprn.h
@@ -145,9 +145,9 @@ class AquaSalPrinter : public SalPrinter
const double fPtTo100thMM = 35.27777778;
-inline int PtTo10Mu( double nPoints ) { return (int)(((nPoints)*fPtTo100thMM)+0.5); }
+inline int PtTo10Mu( double nPoints ) { return (int)((nPoints*fPtTo100thMM)+0.5); }
-inline double TenMuToPt( double nUnits ) { return floor(((nUnits)/fPtTo100thMM)+0.5); }
+inline double TenMuToPt( double nUnits ) { return floor((nUnits/fPtTo100thMM)+0.5); }
#endif // INCLUDED_VCL_INC_OSX_SALPRN_H
diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm
index 4a7de4824b17..5d5f84fedc6c 100644
--- a/vcl/osx/a11ytextattributeswrapper.mm
+++ b/vcl/osx/a11ytextattributeswrapper.mm
@@ -322,7 +322,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
}
+(void)addMarkup:(XAccessibleTextMarkup*)markup toString:(NSMutableAttributedString*)string inRange:(NSRange)range {
- [AquaA11yTextAttributesWrapper addMarkup:markup withType:(css::text::TextMarkupType::SPELLCHECK) toString:string inRange:range];
+ [AquaA11yTextAttributesWrapper addMarkup:markup withType:css::text::TextMarkupType::SPELLCHECK toString:string inRange:range];
}
+(NSMutableAttributedString *)createAttributedStringForElement:(AquaA11yWrapper *)wrapper inOrigRange:(id)origRange {
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index eb2ea1500a96..e290891ce294 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -196,7 +196,7 @@ static AquaSalFrame* getMouseContainerFrame()
// enable OSX>=10.7 fullscreen options if available and useful
bool bAllowFullScreen = (SalFrameStyleFlags::NONE == (mpFrame->mnStyle & (SalFrameStyleFlags::DIALOG | SalFrameStyleFlags::TOOLTIP | SalFrameStyleFlags::SYSTEMCHILD | SalFrameStyleFlags::FLOAT | SalFrameStyleFlags::TOOLWINDOW | SalFrameStyleFlags::INTRO)));
- bAllowFullScreen &= (SalFrameStyleFlags::NONE == (~mpFrame->mnStyle & (SalFrameStyleFlags::SIZEABLE)));
+ bAllowFullScreen &= (SalFrameStyleFlags::NONE == (~mpFrame->mnStyle & SalFrameStyleFlags::SIZEABLE));
bAllowFullScreen &= (mpFrame->mpParent == nullptr);
const SEL setCollectionBehavior = @selector(setCollectionBehavior:);
if( bAllowFullScreen && [pNSWindow respondsToSelector: setCollectionBehavior])
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index 4f98d64cdb76..54e04dad76ca 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -781,7 +781,7 @@ SalObject* AquaSalInstance::CreateObject( SalFrame* pParent, SystemWindowData* p
void AquaSalInstance::DestroyObject( SalObject* pObject )
{
- delete ( pObject );
+ delete pObject;
}
SalPrinter* AquaSalInstance::CreatePrinter( SalInfoPrinter* pInfoPrinter )
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 1146f3431ab0..e235c5d223b9 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -379,7 +379,7 @@ FontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool* bFont
if( CFDictionaryGetValueIfPresent( pAttrDict, kCTFontSymbolicTrait, reinterpret_cast<const void**>(&pSymbolNum) ) )
{
CFNumberGetValue( pSymbolNum, kCFNumberSInt64Type, &nSymbolTrait );
- rDFA.SetSymbolFlag( ((nSymbolTrait & kCTFontClassMaskTrait) == kCTFontSymbolicClass) );
+ rDFA.SetSymbolFlag( (nSymbolTrait & kCTFontClassMaskTrait) == kCTFontSymbolicClass );
}
// get the font weight
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 5d358964e7cd..fe8aa8920f7b 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -495,7 +495,7 @@ public:
virtual void SkipPixel( sal_uInt32 nPixel ) override
{
mnX += nPixel;
- if( (nPixel & 1) )
+ if( nPixel & 1 )
{
mnShift ^= 4;
}