[Libreoffice-commits] core.git: dbaccess/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 22 10:42:12 UTC 2018


 dbaccess/source/ui/app/AppController.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit b55fda6d9eb83460382c0da74eb5cd3a3d03cd7f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Oct 21 21:14:07 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 22 12:41:48 2018 +0200

    pvs-studio: V785 Constant expression in switch statement
    
    Change-Id: I2ac33db8d265f1af1c8fc8def2d3a45c5be37741
    Reviewed-on: https://gerrit.libreoffice.org/62154
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 2c18a2c7cb7e..8b5c8df985f1 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -1074,12 +1074,7 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa
                     if ( xProv.is() )
                     {
                         URL aURL;
-                        switch(_nId)
-                        {
-                            case SID_OPENDOC:
-                                aURL.Complete = ".uno:Open";
-                                break;
-                        }
+                        aURL.Complete = ".uno:Open";
 
                         if ( m_xUrlTransformer.is() )
                             m_xUrlTransformer->parseStrict( aURL );


More information about the Libreoffice-commits mailing list