mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Fixed warnings
This commit is contained in:
parent
29f894c8e5
commit
5ee4858a50
5 changed files with 1 additions and 9 deletions
|
|
@ -150,8 +150,6 @@ void CodeEditor::Paint(Draw& w)
|
|||
int h = GetPos(start.y, start.x) - 1;
|
||||
if(l < 0 || l >= h)
|
||||
return;
|
||||
|
||||
Font font = GetFont();
|
||||
|
||||
Size sz = GetSize();
|
||||
|
||||
|
|
@ -189,8 +187,6 @@ void CodeEditor::Paint(Draw& w)
|
|||
h.font = GetFont();
|
||||
}
|
||||
|
||||
bool ldiff = false;
|
||||
|
||||
HighlightOutput hls(hln);
|
||||
GetSyntax(0)->Highlight(r.Begin(), r.End(), hls, this, 0, 0);
|
||||
|
||||
|
|
|
|||
|
|
@ -152,7 +152,6 @@ String Ide::GetFoundText(const ArrayCtrl& list)
|
|||
{
|
||||
for(int i = 0; i < list.GetCount(); i++) {
|
||||
Value v = list.Get(i, "INFO");
|
||||
bool err = true;
|
||||
if(v.Is<ListLineInfo>()) {
|
||||
const ListLineInfo& f = ValueTo<ListLineInfo>(v);
|
||||
if(*f.message == '\1') {
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ bool LoadCredentials(Array<Credential>& r)
|
|||
bool GetCredentials(const String& url, const String& dir, String& username, String& password)
|
||||
{
|
||||
Array<Credential> cr;
|
||||
int best = 0;
|
||||
if(LoadCredentials(cr)) {
|
||||
for(const Credential& c : cr) {
|
||||
if(url.StartsWith(c.url) || dir.StartsWith(c.url)) {
|
||||
|
|
|
|||
|
|
@ -316,7 +316,6 @@ void Ide::FFoundSetIcon(const Image& m)
|
|||
void Ide::FFoundFinish(bool replace)
|
||||
{
|
||||
ArrayCtrl& ff = FFound();
|
||||
int n = FFound().GetCount();
|
||||
FFound().HeaderTab(2).SetText(Format("Source line (%d)", ff.GetCount()));
|
||||
int ii = btabs.GetCursor();
|
||||
ffound[0]->freplace.Show(ff.GetCount());
|
||||
|
|
@ -665,7 +664,6 @@ void Ide::ReplaceFound(ArrayCtrl& list)
|
|||
int i = r.c; // source line in the list
|
||||
if(i >= 0 && i < list.GetCount()) {
|
||||
Value v = list.Get(i, "INFO");
|
||||
bool err = true;
|
||||
if(v.Is<ListLineInfo>()) {
|
||||
const ListLineInfo& f0 = ValueTo<ListLineInfo>(v);
|
||||
ListLineInfo f = f0;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ void NavDlg::ListSel()
|
|||
}
|
||||
Sort(set);
|
||||
navlines.Clear();
|
||||
for(const NavLine l : set)
|
||||
for(const NavLine& l : set)
|
||||
navlines.Add(RawToValue(l));
|
||||
navlines.GoBegin();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue