Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving code efficiency by errors from cppcheck #1369

Closed
wants to merge 14 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions avogadro/core/variant.h
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit somehow has message from the previous commit, but changes in it are for the just next commit about removing unused private function

Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,9 @@ class AVOGADROCORE_EXPORT Variant

private:
template <typename T>
static T lexical_cast(const std::string& string);
// static T lexical_cast(const std::string& string);

private:
Type m_type;
private : Type m_type;
union
{
bool _bool;
Expand All @@ -146,8 +145,8 @@ class AVOGADROCORE_EXPORT Variant
} m_value;
};

} // end Core namespace
} // end Avogadro namespace
} // namespace Core
} // namespace Avogadro

#include "variant-inline.h"

Expand Down