[glom] Utils::get_temp_file_path(): Actually use our pattern.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Utils::get_temp_file_path(): Actually use our pattern.
- Date: Sun, 1 Nov 2015 12:57:21 +0000 (UTC)
commit a94db0dbe41ea94cf56bc8cf777a3bb27520b96f
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 8122c86..53d1a8e 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -1405,7 +1405,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]