diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-04 11:18:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-04 20:58:33 +0200 |
commit | e7f971f45a154f53be9d4df8fa6ce4f89ad5d92b (patch) | |
tree | 074010ea24f2a4e058c456ae06e111a3f9d5dc9d /vcl/unx | |
parent | c11350e44e39eec2d992836200b90be5c9ab35eb (diff) |
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@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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); } } |