[gnome-commander] noop: variable renamed
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: variable renamed
- Date: Thu, 6 Jan 2022 22:27:52 +0000 (UTC)
commit f63fdbf275946f5fa63aa4bf1e5a317117cf6f6c
Author: Uwe Scholz <u scholz83 gmx de>
Date: Mon Dec 20 23:31:45 2021 +0100
noop: variable renamed
src/gnome-cmd-file.cc | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index ddb53574..91dc0504 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -243,8 +243,8 @@ void gnome_cmd_file_setup (GObject *gObject, GFileInfo *gFileInfo, GnomeCmdDir *
handle_ref (gnomeCmdFile->priv->dir_handle);
}
- auto path = gnomeCmdFile->GetPathStringThroughParent();
- if (path)
+ auto pathString = gnomeCmdFile->GetPathStringThroughParent();
+ if (pathString)
{
GnomeCmdCon *con = nullptr;
if (parentDir)
@@ -263,16 +263,15 @@ void gnome_cmd_file_setup (GObject *gObject, GFileInfo *gFileInfo, GnomeCmdDir *
auto conUri = gnome_cmd_con_get_uri(con);
auto gFileTmp = g_file_new_for_uri (conUri);
- GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile = g_file_resolve_relative_path (gFileTmp, path);
+ GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile = g_file_resolve_relative_path (gFileTmp, pathString);
gnomeCmdFile->gFile = GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile;
- g_free(path);
- g_object_unref (gFileTmp);
+ g_free(pathString);
}
else
{
- GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile = g_file_new_for_path(path);
+ GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile = g_file_new_for_path(pathString);
gnomeCmdFile->gFile = GNOME_CMD_FILE_BASE (gnomeCmdFile)->gFile;
- g_free(path);
+ g_free(pathString);
}
}
// EVERY GnomeCmdFile instance must have a gFile reference
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]