diff --git a/uppsrc/IconDes/Image.cpp b/uppsrc/IconDes/Image.cpp index 2adb9be14..e814a65df 100644 --- a/uppsrc/IconDes/Image.cpp +++ b/uppsrc/IconDes/Image.cpp @@ -290,9 +290,9 @@ Image Colorize2(const Image& img, Color color, int alpha, int gray) int div = 255 - gray; int ao = ga - gray; int ac = div - ao; - r = (ao * s->r + ac * r) / div; - g = (ao * s->g + ac * g) / div; - b = (ao * s->b + ac * b) / div; + r = (ao * s->r + ac * r0) / div; + g = (ao * s->g + ac * g0) / div; + b = (ao * s->b + ac * b0) / div; } t->r = (alpha * (r - s->r) >> 8) + s->r; t->g = (alpha * (g - s->g) >> 8) + s->g; diff --git a/uppsrc/ide/Browser/Base.cpp b/uppsrc/ide/Browser/Base.cpp index 5ef3c52ab..9fefe1325 100644 --- a/uppsrc/ide/Browser/Base.cpp +++ b/uppsrc/ide/Browser/Base.cpp @@ -271,8 +271,6 @@ void ParseFiles(Progress& pi, const Index& parse_file) void UpdateCodeBase2(Progress& pi) { CLOG("============= UpdateCodeBase2 " << GetSysTime()); - const Workspace& wspc = GetIdeWorkspace(); - pi.SetText("Checking source files"); pi.SetPos(0); Index keep_file; @@ -322,9 +320,7 @@ void ParseSrc(Stream& in, int file, Callback2 error) Vector pp; String ext = ToLower(GetFileExt(path)); int filetype = FILE_OTHER; - SourceFileInfo& sfi = source_file[file]; Cpp cpp; - bool b = false; if(ext == ".lay") pp.Add(PreprocessLayFile(path)); else diff --git a/uppsrc/ide/Navigator.cpp b/uppsrc/ide/Navigator.cpp index 44f76a5f3..15de35988 100644 --- a/uppsrc/ide/Navigator.cpp +++ b/uppsrc/ide/Navigator.cpp @@ -511,7 +511,6 @@ void Navigator::Search() else { navigator_global = true; const CppBase& b = CodeBase(); - int ii = 0; String usearch_nest = ToUpper(search_nest); String usearch_name = ToUpper(search_name); ArrayMap imap; @@ -519,8 +518,6 @@ void Navigator::Search() for(int pass = -1; pass < 2; pass++) { for(int i = 0; i < b.GetCount(); i++) { String nest = b.GetKey(i); - // bool foundnest = (wholeclass ? ToUpper(nest) == search_nest - // : ToUpper(nest).Find(search_nest) >= 0) && *nest != '@'; bool foundnest = (wholeclass ? pass < 0 ? false : pass ? ToUpper(nest) == usearch_nest : nest == search_nest @@ -532,7 +529,6 @@ void Navigator::Search() const Array& ci = b[i]; for(int j = 0; j < ci.GetCount(); j++) { const CppItem& m = ci[j]; - // if(local ? m.file == fileii : *m.uname != '@' && m.uname.Find(search_name) >= 0 || both && foundnest) { if(local ? m.file == fileii : *m.uname != '@' && (pass < 0 ? m.name == search_name : pass ? m.uname.Find(usearch_name) >= 0 @@ -581,7 +577,8 @@ void Navigator::Search() IndexSort(keys, values); for(int i = 0; i < keys.GetCount(); i++) keys[i].Remove(0); - gitem = pick(VectorMap > (keys, values)); + VectorMap > h(pick(keys), pick(values)); + gitem = pick(h); for(int i = 0; i < gitem.GetCount(); i++) Sort(gitem[i], sorting ? SortByNames : SortByLines); }