projects
/
evaf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ba5c0
)
Fixed small mistakes detected with clang++
author
Enar Väikene
<enar@vaikene.net>
Mon, 14 May 2012 16:49:28 +0000
(19:49 +0300)
committer
Enar Väikene
<enar@vaikene.net>
Mon, 14 May 2012 16:49:28 +0000
(19:49 +0300)
src/apps/FileFinder/GUI/gui.h
patch
|
blob
|
history
src/apps/PswGen/CLI/cli.cpp
patch
|
blob
|
history
src/libs/Common/logger.cpp
patch
|
blob
|
history
src/libs/Plugins/pluginmanager.cpp
patch
|
blob
|
history
diff --git
a/src/apps/FileFinder/GUI/gui.h
b/src/apps/FileFinder/GUI/gui.h
index 2c55cc517fae35f09099ba7dab601a95f94125a0..4d22d0b0d7636d14722fa6d28a1094a42a6d5d80 100644
(file)
--- a/
src/apps/FileFinder/GUI/gui.h
+++ b/
src/apps/FileFinder/GUI/gui.h
@@
-41,7
+41,7
@@
namespace SdiWindow {
struct iSdiWindow;
} // namespace eVaf::SdiWindow
namespace FileFinder {
-
struct
iFileFinder;
+
class
iFileFinder;
namespace GUI {
namespace Internal {
diff --git
a/src/apps/PswGen/CLI/cli.cpp
b/src/apps/PswGen/CLI/cli.cpp
index 1b59e8b25ba2189523053fe9c4d9b559639cb4bb..cd18b852b7f096660a5ac1ecf6130b12242d4f11 100644
(file)
--- a/
src/apps/PswGen/CLI/cli.cpp
+++ b/
src/apps/PswGen/CLI/cli.cpp
@@
-54,8
+54,8
@@
int const Module::DefaultPasswordLength = 16;
Module::Module()
: Plugins::iPlugin()
, mReady(false)
- , mGenerator(
false
)
- , mStorage(
false
)
+ , mGenerator(
0
)
+ , mStorage(
0
)
, mEvReady(0)
{
setObjectName(QString("%1-Module").arg(VER_MODULE_NAME_STR));
diff --git
a/src/libs/Common/logger.cpp
b/src/libs/Common/logger.cpp
index 809670a6f86f67faf5f08c946b9ddcb82166a54c..bb8807395aa7c735c07972a9a94110d1fae209df 100644
(file)
--- a/
src/libs/Common/logger.cpp
+++ b/
src/libs/Common/logger.cpp
@@
-425,7
+425,7
@@
QString Logger::printf(char const * const fmt, ...) const
va_end(ap);
#else
::va_start(ap, fmt);
- if (::vasprintf(&str, fmt, ap)); // IF is needed to avoid the compiler warning
+ if (::vasprintf(&str, fmt, ap))
{}
; // IF is needed to avoid the compiler warning
::va_end(ap);
#endif
diff --git
a/src/libs/Plugins/pluginmanager.cpp
b/src/libs/Plugins/pluginmanager.cpp
index 69ca736800cd51e1908d98fa6a1538a010004a78..21db40b018ba2e7f10f34a4d2c1a0b66a8eef175 100644
(file)
--- a/
src/libs/Plugins/pluginmanager.cpp
+++ b/
src/libs/Plugins/pluginmanager.cpp
@@
-457,7
+457,7
@@
iPlugin * Module::create(QString const & name)
// If the module is not loaded, load it now
if (!mLoader) {
if (!load())
- return
false
;
+ return
0
;
}
iPlugin * i = 0;