[gnome-commander] noop: fix scope of variable
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: fix scope of variable
- Date: Sun, 14 Mar 2021 20:10:52 +0000 (UTC)
commit a2186514bbb18771e0b6f4c0d3f2026a7bd6728e
Author: Uwe Scholz <u scholz83 gmx de>
Date: Fri Mar 12 23:29:17 2021 +0100
noop: fix scope of variable
src/gnome-cmd-file-list.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 333dd131..482bb1a3 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -335,7 +335,7 @@ FileFormatData::FileFormatData(GnomeCmdFileList *fl, GnomeCmdFile *f, gboolean t
if (fl->priv->base_dir != nullptr)
text[GnomeCmdFileList::COLUMN_DIR] = g_strconcat(get_utf8("."), dpath +
(strlen(fl->priv->base_dir)-1), nullptr);
- else
+ else
text[GnomeCmdFileList::COLUMN_DIR] = dpath;
DEBUG ('l', "FileFormatData text[GnomeCmdFileList::COLUMN_DIR]=[%s]\n",
text[GnomeCmdFileList::COLUMN_DIR]);
@@ -2834,8 +2834,6 @@ gboolean GnomeCmdFileList::file_is_wanted(GnomeCmdFile *gnomeCmdFile)
GError *error;
error = nullptr;
- auto fileNameString = g_file_get_basename(gnomeCmdFile->gFile);
-
auto gFileInfo = g_file_query_info(gnomeCmdFile->gFile,
"standard::*",
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
@@ -2856,6 +2854,8 @@ gboolean GnomeCmdFileList::file_is_wanted(GnomeCmdFile *gnomeCmdFile)
auto returnValue = TRUE;
+ auto fileNameString = g_file_get_basename(gnomeCmdFile->gFile);
+
if (strcmp ((const char*) fileNameString, ".") == 0)
returnValue = FALSE;
if (gnomeCmdFile->is_dotdot)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]