sfx2/source/dialog/dinfdlg.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit bf9c80c873e218b7303dae5c13398a6c9edd1865
Author:     Simon Chenery <[email protected]>
AuthorDate: Fri Feb 6 18:04:32 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Feb 7 12:40:33 2026 +0100

    tdf#145538 Use structured binding in range based for loop in dinfdlg.cxx
    
    Change-Id: Iddb856b9060e37b7cabaa67f54301e1da878111b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198858
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index f17047e9ab51..2f68b27b3172 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1483,10 +1483,10 @@ namespace
 
     void fillTypeBox(weld::ComboBox& rTypeBox)
     {
-        for (const auto& rCustomProperty : SFX_LB_PROPERTY_STRINGARRAY)
+        for (const auto& [rResId, rProperty] : SFX_LB_PROPERTY_STRINGARRAY)
         {
-            OUString sId(OUString::number(rCustomProperty.second));
-            rTypeBox.append(sId, SfxResId(rCustomProperty.first));
+            OUString sId(OUString::number(rProperty));
+            rTypeBox.append(sId, SfxResId(rResId));
         }
         rTypeBox.set_active(0);
         Size aSize(rTypeBox.get_preferred_size());

Reply via email to