Rename a function
This commit is contained in:
parent
5b9cd0b2e5
commit
713117c68d
|
@ -75,7 +75,7 @@ bool findStrNoCase(const generic_string & strHaystack, const generic_string & st
|
||||||
return (it != strHaystack.end());
|
return (it != strHaystack.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PluginsAdminDlg::isFoundInAvailableListFromIndex(const PluginViewList& inWhichList, int index, const generic_string& str2search, bool inWhichPart) const
|
bool PluginsAdminDlg::isFoundInListFromIndex(const PluginViewList& inWhichList, int index, const generic_string& str2search, bool inWhichPart) const
|
||||||
{
|
{
|
||||||
PluginUpdateInfo* pui = inWhichList.getPluginInfoFromUiIndex(index);
|
PluginUpdateInfo* pui = inWhichList.getPluginInfoFromUiIndex(index);
|
||||||
generic_string searchIn;
|
generic_string searchIn;
|
||||||
|
@ -97,7 +97,7 @@ long PluginsAdminDlg::searchFromCurrentSel(const PluginViewList& inWhichList, co
|
||||||
// no selection, let's search from 0 to the end
|
// no selection, let's search from 0 to the end
|
||||||
for (int i = 0; i < nbItem; ++i)
|
for (int i = 0; i < nbItem; ++i)
|
||||||
{
|
{
|
||||||
if (isFoundInAvailableListFromIndex(inWhichList, i, str2search, inWhichPart))
|
if (isFoundInListFromIndex(inWhichList, i, str2search, inWhichPart))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,14 +106,14 @@ long PluginsAdminDlg::searchFromCurrentSel(const PluginViewList& inWhichList, co
|
||||||
// from current position to the end
|
// from current position to the end
|
||||||
for (int i = currentIndex + (isNextMode ? 1 : 0); i < nbItem; ++i)
|
for (int i = currentIndex + (isNextMode ? 1 : 0); i < nbItem; ++i)
|
||||||
{
|
{
|
||||||
if (isFoundInAvailableListFromIndex(inWhichList, i, str2search, inWhichPart))
|
if (isFoundInListFromIndex(inWhichList, i, str2search, inWhichPart))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
// from to begining to current position
|
// from to begining to current position
|
||||||
for (int i = 0; i < currentIndex + (isNextMode ? 1 : 0); ++i)
|
for (int i = 0; i < currentIndex + (isNextMode ? 1 : 0); ++i)
|
||||||
{
|
{
|
||||||
if (isFoundInAvailableListFromIndex(inWhichList, i, str2search, inWhichPart))
|
if (isFoundInListFromIndex(inWhichList, i, str2search, inWhichPart))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,7 +212,7 @@ private :
|
||||||
bool searchInPlugins(bool isNextMode) const;
|
bool searchInPlugins(bool isNextMode) const;
|
||||||
const bool _inNames = true;
|
const bool _inNames = true;
|
||||||
const bool _inDescs = false;
|
const bool _inDescs = false;
|
||||||
bool isFoundInAvailableListFromIndex(const PluginViewList& inWhichList,int index, const generic_string& str2search, bool inWhichPart) const;
|
bool isFoundInListFromIndex(const PluginViewList& inWhichList,int index, const generic_string& str2search, bool inWhichPart) const;
|
||||||
long searchFromCurrentSel(const PluginViewList& inWhichList, const generic_string& str2search, bool inWhichPart, bool isNextMode) const;
|
long searchFromCurrentSel(const PluginViewList& inWhichList, const generic_string& str2search, bool inWhichPart, bool isNextMode) const;
|
||||||
long searchInNamesFromCurrentSel(const PluginViewList& inWhichList, const generic_string& str2search, bool isNextMode) const {
|
long searchInNamesFromCurrentSel(const PluginViewList& inWhichList, const generic_string& str2search, bool isNextMode) const {
|
||||||
return searchFromCurrentSel(inWhichList, str2search, _inNames, isNextMode);
|
return searchFromCurrentSel(inWhichList, str2search, _inNames, isNextMode);
|
||||||
|
|
Loading…
Reference in New Issue