Fix builds.

This commit is contained in:
Martín Lucas Golini
2026-08-30 19:00:53 -03:00
parent 8e5d180a4d
commit f9f14df3ab
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
}

View File

@@ -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 );
}