From dd78057eddb9f95c701c5fb45816071f2c02b2f5 Mon Sep 17 00:00:00 2001 From: Breno Guimaraes Date: Sat, 21 Sep 2019 17:27:52 -0400 Subject: [PATCH] Simplify code --- src/ccache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ccache.cpp b/src/ccache.cpp index 8b116eb82..1d2a639b2 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -3622,8 +3622,7 @@ free_and_nullify(T*& ptr) void cc_reset(void) { - Config new_config; - std::swap(g_config, new_config); + g_config = Config(); free_and_nullify(primary_config_path); free_and_nullify(secondary_config_path); -- 2.47.2