diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-21 16:55:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-21 20:00:47 +0200 |
commit | eaf9565c84017ae3f162b3b6fd229b9772bf513e (patch) | |
tree | fd14c5d504c706541c6d5bafe8aa39146a5a0a29 /svtools/source/dialogs/PlaceEditDialog.cxx | |
parent | 8bf1542f856bd2b8617d7a0870824a3a2ada4b6c (diff) |
Avoid extra calls to INetURLObject::decode
Change-Id: I700c4093213395a12342534fb7685969b5e5b220
Reviewed-on: https://gerrit.libreoffice.org/77891
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/source/dialogs/PlaceEditDialog.cxx')
-rw-r--r-- | svtools/source/dialogs/PlaceEditDialog.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx index d26bec4c58e6..b832bd608e6b 100644 --- a/svtools/source/dialogs/PlaceEditDialog.cxx +++ b/svtools/source/dialogs/PlaceEditDialog.cxx @@ -134,10 +134,8 @@ PlaceEditDialog::PlaceEditDialog(weld::Window* pParent, const std::shared_ptr<Pl // Fill the Username field if ( rUrl.HasUserData( ) ) { - m_xEDUsername->set_text( INetURLObject::decode( rUrl.GetUser( ), - INetURLObject::DecodeMechanism::WithCharset ) ); - m_aDetailsContainers[i]->setUsername( INetURLObject::decode( rUrl.GetUser( ), - INetURLObject::DecodeMechanism::WithCharset ) ); + m_xEDUsername->set_text( rUrl.GetUser(INetURLObject::DecodeMechanism::WithCharset) ); + m_aDetailsContainers[i]->setUsername( rUrl.GetUser(INetURLObject::DecodeMechanism::WithCharset) ); } m_xLBServerType->set_active(i); |