diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-04-05 21:43:19 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-04-06 15:37:08 (GMT) |
commit | 7baec5e94b372cfc21e777488ecf993e4bce368e (patch) | |
tree | c0d5990ea64fdceeafd53f5bb5c107fe1c92f355 /Source/cmQtAutoGenerator.h | |
parent | 191269d247827a4c1de739165c0555b4c9ea9d79 (diff) | |
download | CMake-7baec5e94b372cfc21e777488ecf993e4bce368e.zip CMake-7baec5e94b372cfc21e777488ecf993e4bce368e.tar.gz CMake-7baec5e94b372cfc21e777488ecf993e4bce368e.tar.bz2 |
AutoRcc: Don't use cmQtAutoGenerator::FileSystem methods
`cmQtAutoGenerator::FileSystem` is only required for concurrent file system
access, but `cmQtAutoGeneratorRcc` isn't concurrent. Therefore this patch
replaces all `cmQtAutoGenerator::FileSystem` uses in `cmQtAutoGeneratorRcc`.
Diffstat (limited to 'Source/cmQtAutoGenerator.h')
-rw-r--r-- | Source/cmQtAutoGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerator.h b/Source/cmQtAutoGenerator.h index b55bebc..17170d7 100644 --- a/Source/cmQtAutoGenerator.h +++ b/Source/cmQtAutoGenerator.h @@ -62,6 +62,14 @@ public: bool ColorOutput_ = false; }; + // -- File system methods + static bool MakeParentDirectory(std::string const& filename); + static bool FileRead(std::string& content, std::string const& filename, + std::string* error = nullptr); + static bool FileWrite(std::string const& filename, + std::string const& content, + std::string* error = nullptr); + /// @brief Thread safe file system interface class FileSystem { |