[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 4 18:59:12 UTC 2020


 vcl/unx/gtk3/gtk3gtkinst.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit e7f971f45a154f53be9d4df8fa6ce4f89ad5d92b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jun 4 11:18:28 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jun 4 20:58:33 2020 +0200

    drop unneccessary argument and use known TextColumnId directly
    
    Change-Id: I0c0331e3cf2aa76bca3aabacf06dcf5aebcb55a5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95520
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 257c403615c4..b821ebe7302d 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -11151,9 +11151,9 @@ public:
         return gtk_tree_selection_count_selected_rows(gtk_tree_view_get_selection(m_pTreeView));
     }
 
-    int starts_with(const OUString& rStr, int col, int nStartRow, bool bCaseSensitive)
+    int starts_with(const OUString& rStr, int nStartRow, bool bCaseSensitive)
     {
-        return ::starts_with(GTK_TREE_MODEL(m_pTreeStore), rStr, get_model_col(col), nStartRow, bCaseSensitive);
+        return ::starts_with(GTK_TREE_MODEL(m_pTreeStore), rStr, m_nTextCol, nStartRow, bCaseSensitive);
     }
 
     virtual void disable_notify_events() override
@@ -14638,32 +14638,32 @@ private:
             nStart = 0;
 
         // Try match case sensitive from current position
-        int nPos = m_pTreeView->starts_with(aStartText, 0, nStart, true);
+        int nPos = m_pTreeView->starts_with(aStartText, nStart, true);
         if (nPos == -1 && nStart != 0)
         {
             // Try match case insensitive, but from start
-            nPos = m_pTreeView->starts_with(aStartText, 0, 0, true);
+            nPos = m_pTreeView->starts_with(aStartText, 0, true);
         }
 
         if (!m_bAutoCompleteCaseSensitive)
         {
             // Try match case insensitive from current position
-            nPos = m_pTreeView->starts_with(aStartText, 0, nStart, false);
+            nPos = m_pTreeView->starts_with(aStartText, nStart, false);
             if (nPos == -1 && nStart != 0)
             {
                 // Try match case insensitive, but from start
-                nPos = m_pTreeView->starts_with(aStartText, 0, 0, false);
+                nPos = m_pTreeView->starts_with(aStartText, 0, false);
             }
         }
 
         if (nPos == -1)
         {
             // Try match case sensitive from current position
-            nPos = m_pTreeView->starts_with(aStartText, 0, nStart, true);
+            nPos = m_pTreeView->starts_with(aStartText, nStart, true);
             if (nPos == -1 && nStart != 0)
             {
                 // Try match case sensitive, but from start
-                nPos = m_pTreeView->starts_with(aStartText, 0, 0, true);
+                nPos = m_pTreeView->starts_with(aStartText, 0, true);
             }
         }
 


More information about the Libreoffice-commits mailing list