mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Fix builds.
This commit is contained in:
@@ -275,7 +275,7 @@ SyntaxColorScheme::SyntaxColorScheme( const std::string& name,
|
||||
mStorage( std::make_shared<Storage>( Storage{ name, syntaxColors, editorColors } ) ) {}
|
||||
|
||||
void SyntaxColorScheme::ensureUniqueStorage() {
|
||||
if ( !mStorage.unique() )
|
||||
if ( mStorage.use_count() != 1 )
|
||||
mStorage = std::make_shared<Storage>( *mStorage );
|
||||
mStyleCache.clear();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ void KeyBindings::setKeybinds( const KeyBindings& bindings ) {
|
||||
}
|
||||
|
||||
void KeyBindings::ensureUniqueStorage() {
|
||||
if ( !mStorage.unique() )
|
||||
if ( mStorage.use_count() != 1 )
|
||||
mStorage = std::make_shared<Storage>( *mStorage );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user