summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableWatch.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-04 12:52:32 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-04 12:52:45 (GMT)
commit7b50b05aa9f162388fc9f57899baffdafad7d4af (patch)
tree3a2f4776378fdc1cb09bdc78a4f145b03675b85a /Source/cmVariableWatch.h
parentefbd50383386c00cde63a7b67672b8487b00980f (diff)
parent62e5f722899cfa7c51791be7697c9030aee3a19b (diff)
downloadCMake-7b50b05aa9f162388fc9f57899baffdafad7d4af.zip
CMake-7b50b05aa9f162388fc9f57899baffdafad7d4af.tar.gz
CMake-7b50b05aa9f162388fc9f57899baffdafad7d4af.tar.bz2
Merge topic 'tidy-use-using'
62e5f72289 clang-tidy: Replace typedef with using Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3731
Diffstat (limited to 'Source/cmVariableWatch.h')
-rw-r--r--Source/cmVariableWatch.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index acac2c1..32445d5 100644
--- a/Source/cmVariableWatch.h
+++ b/Source/cmVariableWatch.h
@@ -20,10 +20,9 @@ class cmMakefile;
class cmVariableWatch
{
public:
- typedef void (*WatchMethod)(const std::string& variable, int access_type,
- void* client_data, const char* newValue,
- const cmMakefile* mf);
- typedef void (*DeleteData)(void* client_data);
+ using WatchMethod = void (*)(const std::string&, int, void*, const char*,
+ const cmMakefile*);
+ using DeleteData = void (*)(void*);
cmVariableWatch();
~cmVariableWatch();
@@ -77,7 +76,7 @@ protected:
Pair& operator=(const Pair&) = delete;
};
- typedef std::vector<std::shared_ptr<Pair>> VectorOfPairs;
+ using VectorOfPairs = std::vector<std::shared_ptr<Pair>>;
typedef std::map<std::string, VectorOfPairs> StringToVectorOfPairs;
StringToVectorOfPairs WatchMap;