]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove redundant initialization of std::string variables
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 4 Jan 2021 12:55:13 +0000 (13:55 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Jan 2021 18:28:39 +0000 (19:28 +0100)
src/Config.hpp

index a5945facc75c829586003c8a3b9cb411b9302235..1d8a8e85e5e9e3f7e11bbe011e99184c10b18935 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2020 Joel Rosdahl and other contributors
+// Copyright (C) 2019-2021 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -133,34 +133,34 @@ private:
   std::string m_secondary_config_path;
 
   bool m_absolute_paths_in_stderr = false;
-  std::string m_base_dir = "";
+  std::string m_base_dir;
   std::string m_cache_dir;
-  std::string m_compiler = "";
+  std::string m_compiler;
   std::string m_compiler_check = "mtime";
   CompilerType m_compiler_type = CompilerType::auto_guess;
   bool m_compression = true;
   int8_t m_compression_level = 0; // Use default level
-  std::string m_cpp_extension = "";
+  std::string m_cpp_extension;
   bool m_debug = false;
   bool m_depend_mode = false;
   bool m_direct_mode = true;
   bool m_disable = false;
-  std::string m_extra_files_to_hash = "";
+  std::string m_extra_files_to_hash;
   bool m_file_clone = false;
   bool m_hard_link = false;
   bool m_hash_dir = true;
-  std::string m_ignore_headers_in_manifest = "";
-  std::string m_ignore_options = "";
+  std::string m_ignore_headers_in_manifest;
+  std::string m_ignore_options;
   bool m_inode_cache = false;
   bool m_keep_comments_cpp = false;
   double m_limit_multiple = 0.8;
-  std::string m_log_file = "";
+  std::string m_log_file;
   uint64_t m_max_files = 0;
   uint64_t m_max_size = 5ULL * 1000 * 1000 * 1000;
-  std::string m_path = "";
+  std::string m_path;
   bool m_pch_external_checksum = false;
-  std::string m_prefix_command = "";
-  std::string m_prefix_command_cpp = "";
+  std::string m_prefix_command;
+  std::string m_prefix_command_cpp;
   bool m_read_only = false;
   bool m_read_only_direct = false;
   bool m_recache = false;