summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-09 19:15:26 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-11-10 22:04:06 +0100
commit71ef91f00d621b5ddc76d6611eb91bb8b0c26c97 (patch)
tree86ad2065503b9e28f9672ce0b792093ca8a4ba67 /dbaccess
parent9d2bf6f6d62c8e99b2bffe45d2d9aa05f29d625e (diff)
Early bailout
Change-Id: I0ffcbbfe2380755ff21532b314961c317ce0c69d
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/TextConnectionHelper.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
index 22f3bd5c5eff..f57b34d352b6 100644
--- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx
@@ -401,17 +401,14 @@ namespace dbaui
if( sTVal == rVal )
{
rBox.set_entry_text(rList.getToken(i, nTok));
- break;
+ return;
}
}
- if ( i >= nCnt )
- {
- if ( m_xTextSeparator.get() == &rBox && rVal.isEmpty() )
- rBox.set_entry_text(m_aTextNone);
- else
- rBox.set_entry_text(rVal.copy(0, 1));
- }
+ if ( m_xTextSeparator.get() == &rBox && rVal.isEmpty() )
+ rBox.set_entry_text(m_aTextNone);
+ else
+ rBox.set_entry_text(rVal.copy(0, 1));
}
}