[glom/glom-1-30: 3/19] Utils::get_temp_file_path(): Actually use our pattern.



commit 6f5407f1f239c964fcac515ee673075096e7203d
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Oct 30 10:19:13 2015 +0100

    Utils::get_temp_file_path(): Actually use our pattern.
    
    Found by cppcheck, which reported an unused variable.

 glom/libglom/utils.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index c40fde3..d8cc881 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -1407,7 +1407,7 @@ std::string Utils::get_temp_file_path(const std::string& prefix, const std::stri
   try
   {
     const std::string prefix_pattern = prefix + "XXXXXX" + extension;
-    const int filehandle = Glib::file_open_tmp(filepath, prefix);
+    const int filehandle = Glib::file_open_tmp(filepath, prefix_pattern);
     ::close(filehandle);
   }
   catch(const Glib::Error& ex)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]