[Libreoffice-commits] .: dbaccess/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Dec 2 09:57:35 PST 2012


 dbaccess/source/ui/querydesign/QueryDesignView.cxx |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 63614919195934a764eacb509d75d15f8b243a48
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Sun Dec 2 18:55:44 2012 +0100

    WaE: explicitly do nothing when nothing needs to be done
    
    Removes compiler warning
    
    Change-Id: Ied96ef294f25cca54887ca6a86ec07ecb2b1fae0

diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 8ba3912..816991a 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -463,12 +463,15 @@ namespace
         OQueryTableConnectionData data(*pData);
         switch (data.GetJoinType())
         {
-            case LEFT_JOIN:
-                data.SetJoinType(RIGHT_JOIN);
-                break;
-            case RIGHT_JOIN:
-                data.SetJoinType(LEFT_JOIN);
-                break;
+        case LEFT_JOIN:
+            data.SetJoinType(RIGHT_JOIN);
+            break;
+        case RIGHT_JOIN:
+            data.SetJoinType(LEFT_JOIN);
+            break;
+        default:
+            // the other join types are symmetric, so nothing to change
+            break;
         }
         return BuildJoin(_xConnection, rRh, BuildTable(_xConnection,pLh), &data);
     }


More information about the Libreoffice-commits mailing list