include/vcl/toolkit/treelistbox.hxx |    2 +-
 vcl/source/treelist/treelistbox.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 33897a3dce5d31d0b869bc1507eed2ddcd3b1664
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Nov 7 14:44:11 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Nov 8 08:18:03 2023 +0100

    loplugin:fieldcast in SvTreeListBox
    
    Change-Id: I9a0053ff196e45a2d13ca2406ff67c8d95180b11
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159094
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/vcl/toolkit/treelistbox.hxx 
b/include/vcl/toolkit/treelistbox.hxx
index da6785679ad5..ecbd489fd853 100644
--- a/include/vcl/toolkit/treelistbox.hxx
+++ b/include/vcl/toolkit/treelistbox.hxx
@@ -229,7 +229,7 @@ class VCL_DLLPUBLIC SvTreeListBox
     sal_Int8        mnDragAction;
 
     SvTreeListEntry*        pEdEntry;
-    SvLBoxItem*             pEdItem;
+    SvLBoxString*           pEdItem;
 
     rtl::Reference<TransferDataContainer> m_xTransferHelper;
 
diff --git a/vcl/source/treelist/treelistbox.cxx 
b/vcl/source/treelist/treelistbox.cxx
index e944214c5b88..b97abc33333b 100644
--- a/vcl/source/treelist/treelistbox.cxx
+++ b/vcl/source/treelist/treelistbox.cxx
@@ -2459,7 +2459,7 @@ void SvTreeListBox::EditedText( const OUString& rStr )
     {
         if( EditedEntry( pEdEntry, rStr ) )
         {
-            static_cast<SvLBoxString*>(pEdItem)->SetText( rStr );
+            pEdItem->SetText( rStr );
             pModel->InvalidateEntry( pEdEntry );
         }
         if( GetSelectionCount() == 0 )

Reply via email to