mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Inlined variables to ensure one instantiation per program.
This commit is contained in:
parent
5f060696b2
commit
8d6febf392
1 changed files with 9 additions and 9 deletions
|
@ -13,14 +13,14 @@ namespace CalculatorUnitTests
|
|||
|
||||
namespace CalculatorApp
|
||||
{
|
||||
constexpr auto QwordType = 1;
|
||||
constexpr auto DwordType = 2;
|
||||
constexpr auto WordType = 3;
|
||||
constexpr auto ByteType = 4;
|
||||
constexpr auto HexBase = 5;
|
||||
constexpr auto DecBase = 6;
|
||||
constexpr auto OctBase = 7;
|
||||
constexpr auto BinBase = 8;
|
||||
inline constexpr auto QwordType = 1;
|
||||
inline constexpr auto DwordType = 2;
|
||||
inline constexpr auto WordType = 3;
|
||||
inline constexpr auto ByteType = 4;
|
||||
inline constexpr auto HexBase = 5;
|
||||
inline constexpr auto DecBase = 6;
|
||||
inline constexpr auto OctBase = 7;
|
||||
inline constexpr auto BinBase = 8;
|
||||
|
||||
class CopyPasteManager
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ namespace CalculatorApp
|
|||
return ClipboardTextFormat() >= 0;
|
||||
}
|
||||
|
||||
static constexpr auto PasteErrorString = L"NoOp";
|
||||
inline static constexpr auto PasteErrorString = L"NoOp";
|
||||
|
||||
private:
|
||||
static int ClipboardTextFormat();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue