vcl/osx/documentfocuslistener.cxx |    6 ++----
 vcl/osx/salframeview.mm           |    2 +-
 vcl/quartz/salbmp.cxx             |    6 +++---
 3 files changed, 6 insertions(+), 8 deletions(-)

New commits:
commit bf08ca37324c5a6d6cfe8cc0be5c4d6396fa1341
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Jul 16 09:24:13 2019 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Jul 16 11:38:31 2019 +0200

    loplugin:simplifyconstruct (macOS)
    
    Change-Id: Ifad405b05142ce61673f22ec3160f50314419ce7
    Reviewed-on: https://gerrit.libreoffice.org/75680
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/vcl/osx/documentfocuslistener.cxx 
b/vcl/osx/documentfocuslistener.cxx
index 649f1324e75b..494a3a9456d1 100644
--- a/vcl/osx/documentfocuslistener.cxx
+++ b/vcl/osx/documentfocuslistener.cxx
@@ -145,8 +145,7 @@ void DocumentFocusListener::attachRecursive(
     if( xStateSet->contains(AccessibleStateType::FOCUSED ) )
         m_aFocusTracker.setFocusedObject( xAccessible );
 
-    Reference< XAccessibleEventBroadcaster > xBroadcaster =
-        Reference< XAccessibleEventBroadcaster >(xContext, UNO_QUERY);
+    Reference< XAccessibleEventBroadcaster > xBroadcaster(xContext, UNO_QUERY);
 
     // If not already done, add the broadcaster to the list and attach as 
listener.
     if( xBroadcaster.is() && m_aRefList.insert(xBroadcaster).second )
@@ -192,8 +191,7 @@ void DocumentFocusListener::detachRecursive(
     const Reference< XAccessibleStateSet >& xStateSet
 )
 {
-    Reference< XAccessibleEventBroadcaster > xBroadcaster =
-        Reference< XAccessibleEventBroadcaster >(xContext, UNO_QUERY);
+    Reference< XAccessibleEventBroadcaster > xBroadcaster(xContext, UNO_QUERY);
 
     if( xBroadcaster.is() && 0 < m_aRefList.erase(xBroadcaster) )
     {
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 6831415b75ba..c2c9169a40df 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -1595,7 +1595,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
     if( len > 0 ) {
         NSString *pString = [aString string];
         OUString aInsertString( GetOUString( pString ) );
-        std::vector<ExtTextInputAttr> aInputFlags = 
std::vector<ExtTextInputAttr>( std::max( 1, len ), ExtTextInputAttr::NONE );
+        std::vector<ExtTextInputAttr> aInputFlags( std::max( 1, len ), 
ExtTextInputAttr::NONE );
         for ( int i = 0; i < len; i++ )
         {
             unsigned int nUnderlineValue;
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 7f5c87eb8c8e..9936f15ac114 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -324,7 +324,7 @@ public:
     }
     virtual Color ReadPixel() override
     {
-        const Color c = Color( pData[1], pData[2], pData[3] );
+        const Color c( pData[1], pData[2], pData[3] );
         pData += 4;
         return c;
     }
@@ -349,7 +349,7 @@ public:
     }
     virtual Color ReadPixel() override
     {
-        const Color c = Color( pData[2], pData[1], pData[0] );
+        const Color c( pData[2], pData[1], pData[0] );
         pData += 3;
         return c;
     }
@@ -377,7 +377,7 @@ public:
     }
     virtual Color ReadPixel() override
     {
-        const Color c = Color( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 
, (*pData & 0x001f) << 3 );
+        const Color c( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 , 
(*pData & 0x001f) << 3 );
         pData++;
         return c;
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to