diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-18 19:44:14 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-18 21:55:43 (GMT) |
commit | e96b5d14f9f3500b2221e9afedfacabb0a56bb4c (patch) | |
tree | 242b3a3c35d604973ae7150aef12b775702928ec /Source/cmMakefile.h | |
parent | 7eb0dfa0622afe078c2e131ee1cbad293960b634 (diff) | |
download | CMake-e96b5d14f9f3500b2221e9afedfacabb0a56bb4c.zip CMake-e96b5d14f9f3500b2221e9afedfacabb0a56bb4c.tar.gz CMake-e96b5d14f9f3500b2221e9afedfacabb0a56bb4c.tar.bz2 |
cmListFileContext: Implement LessThanComparable.
Move wrapping existing code from cmMakefile, and simplify the
implementation there.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 3203b1b..bfd6155 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -386,26 +386,7 @@ public: */ cmPolicies *GetPolicies() const; - struct cmCMP0054Id - { - cmCMP0054Id(cmListFileContext const& context): - Context(context) - { - - } - - bool operator< (cmCMP0054Id const& id) const - { - if(this->Context.FilePath != id.Context.FilePath) - return this->Context.FilePath < id.Context.FilePath; - - return this->Context.Line < id.Context.Line; - } - - cmListFileContext Context; - }; - - mutable std::set<cmCMP0054Id> CMP0054ReportedIds; + mutable std::set<cmListFileContext> CMP0054ReportedIds; /** * Determine if the given context, name pair has already been reported |