Simplify FilenameInfo initialization

This commit is contained in:
David Capello 2022-10-06 11:49:05 -03:00
parent 16362cc511
commit c253bfbedd

View File

@ -1,4 +1,5 @@
// Aseprite // Aseprite
// Copyright (C) 2022 Igara Studio S.A.
// Copyright (C) 2001-2017 David Capello // Copyright (C) 2001-2017 David Capello
// //
// This program is distributed under the terms of // This program is distributed under the terms of
@ -14,8 +15,6 @@ namespace app {
class FilenameInfo { class FilenameInfo {
public: public:
FilenameInfo() : m_frame(-1), m_tagFrame(-1) { }
const std::string& filename() const { return m_filename; } const std::string& filename() const { return m_filename; }
const std::string& layerName() const { return m_layerName; } const std::string& layerName() const { return m_layerName; }
const std::string& groupName() const { return m_groupName; } const std::string& groupName() const { return m_groupName; }
@ -78,9 +77,9 @@ namespace app {
std::string m_innerTagName; std::string m_innerTagName;
std::string m_outerTagName; std::string m_outerTagName;
std::string m_sliceName; std::string m_sliceName;
int m_frame; int m_frame = -1;
int m_tagFrame; int m_tagFrame = -1;
int m_duration; int m_duration = 0;
}; };
// Returns the information inside {frame} tag. // Returns the information inside {frame} tag.