diff options
author | Aaron Orenstein <aorenste@fb.com> | 2017-08-18 01:27:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-20 18:10:44 (GMT) |
commit | fe1e811b4fec546d8a55cd1160335766422f2127 (patch) | |
tree | b6ff395351c45d32abc14c6df86c8119b6aa5ae8 /Source/cmSourceFileLocation.h | |
parent | 95df03a1d44d48b5407dd0ddc9e618ce2f17762b (diff) | |
download | CMake-fe1e811b4fec546d8a55cd1160335766422f2127.zip CMake-fe1e811b4fec546d8a55cd1160335766422f2127.tar.gz CMake-fe1e811b4fec546d8a55cd1160335766422f2127.tar.bz2 |
cmSourceFileLocation: Drop unnecessary copy-assignment operator
Update the one place that used it to avoid needing assignment.
Diffstat (limited to 'Source/cmSourceFileLocation.h')
-rw-r--r-- | Source/cmSourceFileLocation.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSourceFileLocation.h b/Source/cmSourceFileLocation.h index 6dbc2da..fb5b330 100644 --- a/Source/cmSourceFileLocation.h +++ b/Source/cmSourceFileLocation.h @@ -29,7 +29,6 @@ public: cmSourceFileLocation(cmMakefile const* mf, const std::string& name); cmSourceFileLocation(); cmSourceFileLocation(const cmSourceFileLocation& loc); - cmSourceFileLocation& operator=(const cmSourceFileLocation& loc); /** * Return whether the given source file location could refers to the @@ -79,7 +78,7 @@ public: */ cmMakefile const* GetMakefile() const { return this->Makefile; } private: - cmMakefile const* Makefile; + cmMakefile const* const Makefile; bool AmbiguousDirectory; bool AmbiguousExtension; std::string Directory; @@ -90,6 +89,9 @@ private: // Update the location with additional knowledge. void Update(cmSourceFileLocation const& loc); void UpdateExtension(const std::string& name); + + cmSourceFileLocation& operator=(const cmSourceFileLocation& loc) + CM_EQ_DELETE; }; #endif |