sw/source/uibase/shells/textsh1.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 0881a030e11e28f289eda41dbdebb7f7fcf807d4
Author:     Sahil Gautam <sahil.gau...@collabora.com>
AuthorDate: Wed Aug 13 13:06:33 2025 +0530
Commit:     Sahil Gautam <sahil.gau...@collabora.com>
CommitDate: Wed Aug 13 12:33:24 2025 +0200

    improve code readability
    
    Change-Id: I014ee9ba4483147593df069578c17ac0a7ebc184
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189497
    Tested-by: Jenkins
    Reviewed-by: Sahil Gautam <sahil.gau...@collabora.com>

diff --git a/sw/source/uibase/shells/textsh1.cxx 
b/sw/source/uibase/shells/textsh1.cxx
index a6f6b4eee6cd..e27e14fe2df4 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1327,9 +1327,8 @@ void SwTextShell::Execute(SfxRequest &rReq)
         {
             ::std::optional<OUString> oName;
             if (pItem)
-            {
                 oName.emplace(static_cast<const 
SfxStringItem*>(pItem)->GetValue());
-            }
+
             {
                 SwAbstractDialogFactory* pFact = 
SwAbstractDialogFactory::Create();
                 ScopedVclPtr<VclAbstractDialog> 
pDlg(pFact->CreateSwInsertBookmarkDlg(GetView().GetFrameWeld(), rWrtSh, oName ? 
&*oName : nullptr));

Reply via email to