diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-02 18:55:44 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-02 18:56:48 +0100 |
commit | 63614919195934a764eacb509d75d15f8b243a48 (patch) | |
tree | 13971b69c4cd813a5ba3cae2bfd361cf7d46959f /dbaccess | |
parent | c25bb400bbfe20b3b13237ed10935ec9d0f6d769 (diff) |
WaE: explicitly do nothing when nothing needs to be done
Removes compiler warning
Change-Id: Ied96ef294f25cca54887ca6a86ec07ecb2b1fae0
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 8ba3912444f1..816991ad8a8d 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); } |