mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
ide: Fixed GCC 9 warning
git-svn-id: svn://ultimatepp.org/upp/trunk@14141 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a7a335b988
commit
aaf8f0bd83
3 changed files with 6 additions and 6 deletions
|
|
@ -158,8 +158,8 @@ struct CodeBrowser {
|
|||
void NameStart() { display.namestart = true; }
|
||||
String GetCodeRef(int i) const;
|
||||
String GetCodeRef() const;
|
||||
const CppItemInfo& GetItemInfo(int i) const;
|
||||
const CppItemInfo& GetItemInfo() const;
|
||||
CppItemInfo GetItemInfo(int i) const;
|
||||
CppItemInfo GetItemInfo() const;
|
||||
bool Key(dword key, int count);
|
||||
bool IsSearch() const;
|
||||
void ClearSearch();
|
||||
|
|
|
|||
|
|
@ -232,12 +232,12 @@ String CodeBrowser::GetCodeRef() const
|
|||
return item.IsCursor() ? GetCodeRef(item.GetCursor()) : String();
|
||||
}
|
||||
|
||||
const CppItemInfo& CodeBrowser::GetItemInfo(int i) const
|
||||
CppItemInfo CodeBrowser::GetItemInfo(int i) const
|
||||
{
|
||||
return ValueTo<CppItemInfo>(item.Get(i, 1));
|
||||
}
|
||||
|
||||
const CppItemInfo& CodeBrowser::GetItemInfo() const
|
||||
CppItemInfo CodeBrowser::GetItemInfo() const
|
||||
{
|
||||
return GetItemInfo(item.GetCursor());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -325,13 +325,13 @@ void TopicEditor::InsertItem()
|
|||
if(ref.item.IsSelection()) {
|
||||
for(int i = 0; i < ref.item.GetCount(); i++)
|
||||
if(ref.item.IsSelected(i)) {
|
||||
const CppItemInfo& m = ref.GetItemInfo(i);
|
||||
CppItemInfo m = ref.GetItemInfo(i);
|
||||
qtf << CreateQtf(ref.GetCodeRef(i), m.name, m, GetLang());
|
||||
}
|
||||
}
|
||||
else
|
||||
if(ref.item.IsCursor()) {
|
||||
const CppItemInfo& m = ref.GetItemInfo();
|
||||
CppItemInfo m = ref.GetItemInfo();
|
||||
qtf << CreateQtf(ref.GetCodeRef(), m.name, m, GetLang());
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue