Skip to content

Commit

Permalink
use const char* for constants to fix warning on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 17, 2023
1 parent 8217e34 commit 586c2be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OdbDesignLib/StandardFontsFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ namespace Odb::Lib::FileModel::Design

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

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

inline static constexpr char* BEGIN_TOKEN = "CHAR";
inline static constexpr char* END_TOKEN = "ECHAR";
inline static constexpr const char* BEGIN_TOKEN = "CHAR";
inline static constexpr const char* END_TOKEN = "ECHAR";

char character;
LineRecord::Vector m_lineRecords;
Expand Down

0 comments on commit 586c2be

Please sign in to comment.