Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 31, 2023
1 parent ff246be commit baacb65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions OdbDesignLib/FileModel/Design/StandardFontsFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ namespace Odb::Lib::FileModel::Design
return false;
}
}
else if (line.find(CharacterBlock::LineRecord::LINE_RECORD_TOKEN) == 0)
else if (line.find(CharacterBlock::LineRecord::RECORD_TOKEN) == 0)
{
std::string token;
if (!(lineStream >> token)) return false;
if (token != CharacterBlock::LineRecord::LINE_RECORD_TOKEN) return false;
if (token != CharacterBlock::LineRecord::RECORD_TOKEN) return false;

if (pCurrentCharacterBlock == nullptr || !beginTokenFound) return false;

Expand Down
2 changes: 1 addition & 1 deletion OdbDesignLib/FileModel/Design/StandardFontsFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Odb::Lib::FileModel::Design

typedef std::vector<std::shared_ptr<LineRecord>> Vector;

inline static constexpr const char* LINE_RECORD_TOKEN = "LINE";
inline static constexpr const char* RECORD_TOKEN = "LINE";
};

inline static constexpr const char* BEGIN_TOKEN = "CHAR";
Expand Down
4 changes: 1 addition & 3 deletions Utils/StopWatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ namespace Utils

std::string getElapsedSecondsString(const std::string& suffix) const;


//template<class D>
//std::chrono::system_clock::duration getElapsedDuration() const;
//
//std::chrono::system_clock::duration getElapsedDuration() const;

constexpr inline static const double MS_PER_SECOND = 1000.0;

Expand Down

0 comments on commit baacb65

Please sign in to comment.