mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Replace std::stringstream() with fmt::format()
This commit is contained in:
parent
a0ddefb732
commit
177f42898a
@ -1253,10 +1253,11 @@ void AsepriteDecoder::readPropertiesMaps(doc::UserData::PropertiesMaps& properti
|
||||
if (id) {
|
||||
try {
|
||||
extensionId = extFiles.to_fn.at(id);
|
||||
} catch (std::out_of_range) {
|
||||
}
|
||||
catch (const std::out_of_range&) {
|
||||
// This shouldn't happen, but if it does, we put the properties
|
||||
// in an artificial extensionId.
|
||||
extensionId = (std::stringstream() << "__missed__" << id).str();
|
||||
extensionId = fmt::format("__missed__{}", id);
|
||||
delegate()->error(
|
||||
fmt::format("Error: Invalid extension ID (id={0} not found)", id));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user