mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
L #-: cppcheck version 2.19 (#4714)
* Remove empty destructors, keep only those which change private/public contract * Remove unused variables * Use static methods whenever possible * Delete copy and assign constructor if cppcheck complains * Disable AStyle linting
This commit is contained in:
1 parent
204dd77ad8
commit
d5807d9bb9
170 files changed
+188
-421
No files matched your search
@@ -192,7 +192,7 @@ public:
|
||||
{
|
||||
};
|
||||
|
||||
virtual ~PoolObjectSQL()
|
||||
~PoolObjectSQL() override
|
||||
{
|
||||
if (!ro && _mutex != nullptr)
|
||||
{
|
||||
@@ -701,7 +701,7 @@ protected:
|
||||
* must be checked before
|
||||
* @param new_perm the new value. If it is -1, it will be ignored
|
||||
*/
|
||||
void set_perm(int &perm, const int &new_perm)
|
||||
static void set_perm(int &perm, const int &new_perm)
|
||||
{
|
||||
if ( new_perm != -1 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user