Reduce code smell - explicit (#83)

"explicit" should be used on single-parameter constructors and conversion operators

https://sonarcloud.io/organizations/pando-project/issues?resolved=false&rules=cpp%3AS1709

Signed-off-by: Bence Gabor Kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
kisbg 2019-02-13 00:21:40 +01:00 committed by yichoi
commit 21cd2bd2d6
60 changed files with 101 additions and 101 deletions

View file

@ -1820,7 +1820,7 @@ NEVER_INLINE Value ByteCodeInterpreter::getGlobalObjectSlowCase(ExecutionState&
class VirtualIdDisabler {
public:
VirtualIdDisabler(Context* c)
explicit VirtualIdDisabler(Context* c)
{
ctx = c;
fn = c->virtualIdentifierCallback();