mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 02:26:29 +03:00
Fix warning in Variant produced by the use of memset.
This commit is contained in:
@@ -117,7 +117,7 @@ class EE_API Variant {
|
||||
mValue( other.mValue ), mType( other.mType ), mOwnsObject( other.mOwnsObject ) {
|
||||
other.mType = Type::Invalid;
|
||||
other.mOwnsObject = false;
|
||||
std::memset( &other.mValue, 0, sizeof( mValue ) );
|
||||
other.mValue = {};
|
||||
}
|
||||
|
||||
Variant& operator=( const Variant& other ) {
|
||||
@@ -136,7 +136,7 @@ class EE_API Variant {
|
||||
mValue = other.mValue;
|
||||
other.mType = Type::Invalid;
|
||||
other.mOwnsObject = false;
|
||||
std::memset( &other.mValue, 0, sizeof( mValue ) );
|
||||
other.mValue = {};
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ void addJavaScript() {
|
||||
auto& sd = SyntaxDefinitionManager::instance()->add(
|
||||
|
||||
{ "JavaScript",
|
||||
{ "%.js$" },
|
||||
{ "%.js$", "%.mjs$" },
|
||||
{
|
||||
{ { "//.-\n" }, "comment" },
|
||||
{ { "/%*", "%*/" }, "comment" },
|
||||
|
||||
Reference in New Issue
Block a user