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



commit e25ca5962afa47c5f250413b9dc460e050404f54
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 417aefc..489d19b 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -1439,7 +1439,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]