16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 15:59:18 +02:00

Fix C4566

This commit is contained in:
docentYT
2026-05-12 16:36:32 +02:00
parent 4c7cf22d06
commit be91c4da70
3 changed files with 17 additions and 11 deletions

3
utilities/U8.h Normal file
View File

@@ -0,0 +1,3 @@
#pragma once
#define U8(str) (const char *)u8##str

View File

@@ -27,6 +27,8 @@ Copyright (C) 2007-2014 Maciej Cierniak
#include "utilities/utilities.h"
#include "utilities/Globals.h"
#include "utilities/parser.h"
#include "utilities/U8.h"
//#include "utilities/Logs.h"
@@ -204,7 +206,7 @@ std::string to_hex_str(int const Value, int const Width)
return o.str();
};
std::string const fractionlabels[] = {" ", "¹", "²", "³", "", "", "", "", "", ""};
std::string const fractionlabels[] = {U8(" "), U8("¹"), U8("²"), U8("³"), U8(""), U8(""), U8(""), U8(""), U8(""), U8("")};
std::string to_minutes_str(float const Minutes, bool const Leadingzero, int const Width)
{