From 2be0781941a5b9be7e0209bcbe72a2e623cad546 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Mon, 5 Feb 2018 17:10:46 +0300 Subject: Using the same constant for an incorrect rating in all places. --- defines.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'defines.hpp') diff --git a/defines.hpp b/defines.hpp index 93b3f55f65..eed20fce9f 100644 --- a/defines.hpp +++ b/defines.hpp @@ -1,5 +1,7 @@ #pragma once +// Only defines and constexprs are allowed in this file. + #define DATA_FILE_EXTENSION ".mwm" #define DATA_FILE_EXTENSION_TMP ".mwm.tmp" #define DIFF_FILE_EXTENSION ".mwmdiff" @@ -94,3 +96,5 @@ #define MIXED_TAGS_FILE "mixed_tags.txt" #define LOCALIZATION_DESCRIPTION_SUFFIX " Description" + +auto constexpr kInvalidRatingValue = -1.0f; -- cgit v1.2.3