rose: mark RoseInstrCheckLongLit ctor explit

This commit is contained in:
Justin Viiret 2016-11-29 09:25:43 +11:00 committed by Matthew Barr
parent 8f1b3c89fa
commit 5061b76901

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, Intel Corporation * Copyright (c) 2016-2017, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
@ -1729,7 +1729,7 @@ class RoseInstrCheckLongLit
public: public:
std::string literal; std::string literal;
RoseInstrCheckLongLit(std::string literal_in) explicit RoseInstrCheckLongLit(std::string literal_in)
: literal(std::move(literal_in)) {} : literal(std::move(literal_in)) {}
bool operator==(const RoseInstrCheckLongLit &ri) const { bool operator==(const RoseInstrCheckLongLit &ri) const {
@ -1756,7 +1756,7 @@ class RoseInstrCheckLongLitNocase
public: public:
std::string literal; std::string literal;
RoseInstrCheckLongLitNocase(std::string literal_in) explicit RoseInstrCheckLongLitNocase(std::string literal_in)
: literal(std::move(literal_in)) { : literal(std::move(literal_in)) {
upperString(literal); upperString(literal);
} }