LGTM: [skip ci] fix: Local variable hides global variable

A local variable or parameter that hides a global variable of the same name.
This may be confusing. Consider renaming one of the variables.
This commit is contained in:
wmayer
2020-07-26 19:30:24 +02:00
parent 7a5be2d42e
commit 99121b75c9
4 changed files with 15 additions and 43 deletions

View File

@@ -57,7 +57,7 @@
using namespace Gui;
/* XPM */
static const char *px[]={
static const char *not_found[]={
"24 24 2 1",
"# c #000000",
". c #ffffff",
@@ -293,7 +293,7 @@ QPixmap BitmapFactoryInst::pixmap(const char* name) const
}
Base::Console().Warning("Cannot find icon: %s\n", name);
return QPixmap(px);
return QPixmap(not_found);
}
QPixmap BitmapFactoryInst::pixmapFromSvg(const char* name, const QSize& size) const