diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 08:56:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 09:39:03 +0200 |
commit | 598a65a3c1632c24f2aac38c5a2c9f6a55618cd6 (patch) | |
tree | ab510c8d34e95b8414c0a43726a0152073ed277d /dbaccess/source/ui/dlg/sqlmessage.cxx | |
parent | b9db7c7236ab75199c281a510546d6778d28e474 (diff) |
loplugin:flatten in dbaccess
Change-Id: Ifcfd3637fbce6dc3a07a1859f102a6ac85149190
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92237
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/dlg/sqlmessage.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/sqlmessage.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx index b19e4209b230..73c9aa001221 100644 --- a/dbaccess/source/ui/dlg/sqlmessage.cxx +++ b/dbaccess/source/ui/dlg/sqlmessage.cxx @@ -476,19 +476,19 @@ void OSQLMessageBox::impl_createStandardButtons( MessBoxStyle _nStyle ) lcl_addButton(m_xDialog.get(), StandardButtonType::OK, true); } - if ( !m_sHelpURL.isEmpty() ) - { - lcl_addButton(m_xDialog.get(), StandardButtonType::Help, false); + if ( m_sHelpURL.isEmpty() ) + return; - OUString aTmp; - INetURLObject aHID( m_sHelpURL ); - if ( aHID.GetProtocol() == INetProtocol::Hid ) - aTmp = aHID.GetURLPath(); - else - aTmp = m_sHelpURL; + lcl_addButton(m_xDialog.get(), StandardButtonType::Help, false); - m_xDialog->set_help_id(OUStringToOString(aTmp, RTL_TEXTENCODING_UTF8)); - } + OUString aTmp; + INetURLObject aHID( m_sHelpURL ); + if ( aHID.GetProtocol() == INetProtocol::Hid ) + aTmp = aHID.GetURLPath(); + else + aTmp = m_sHelpURL; + + m_xDialog->set_help_id(OUStringToOString(aTmp, RTL_TEXTENCODING_UTF8)); } void OSQLMessageBox::impl_addDetailsButton() |