Skip to content

Commit 426d457

Browse files
committed
Minor fixes
1 parent 76406b6 commit 426d457

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

contrib/vcpkg

Submodule vcpkg updated 3232 files

src/tinyui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static Style DefaultStyle {
4141
{ "Arial.ttf", 35, nullptr }
4242
};
4343

44-
static constexpr char *SeverityToken[] = {
44+
static const char *SeverityToken[] = {
4545
"",
4646
"*TRACE*",
4747
"*DEBUG*",

src/tinyui.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ enum class Alignment : int32_t {
228228
Invalid = -1, ///< The invalid alignment.
229229
Left = 0, ///< The left alignment.
230230
Center, ///< The center alignment.
231-
Right, ///< The right alignment.
231+
Right, ///< The right alignment.
232232
Count ///< The number of alignments.
233233
};
234234

235235
/// @brief The font description struct.
236236
struct Font {
237-
const char *mName; ///< The name of the font.
238-
uint32_t mSize; ///< The size of the font.
239-
FontImpl *mFont; ///< The font implementation.
237+
const char *mName{nullptr}; ///< The name of the font.
238+
uint32_t mSize{12}; ///< The size of the font.
239+
FontImpl *mFont{nullptr}; ///< The font implementation.
240240
};
241241

242242
/// @brief The font cache.

0 commit comments

Comments
 (0)