[gnome-commander] noop: variables renamed



commit b47ae2cdf19283422192a842ed28e152b95c4566
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Sep 28 21:40:18 2021 +0200

    noop: variables renamed

 src/gnome-cmd-smb-net.cc  | 14 +++++++-------
 src/gnome-cmd-smb-path.cc | 26 +++++++++++++-------------
 2 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/gnome-cmd-smb-net.cc b/src/gnome-cmd-smb-net.cc
index 12d9c72d..2c89fc33 100644
--- a/src/gnome-cmd-smb-net.cc
+++ b/src/gnome-cmd-smb-net.cc
@@ -142,27 +142,27 @@ inline void rebuild_map ()
 
 SmbEntity *gnome_cmd_smb_net_get_entity (const gchar *name)
 {
-    gboolean b = FALSE;
+    gboolean rebuilt = FALSE;
 
     if (!entities)
     {
         DEBUG ('s', "Building the SMB database for the first time.\n");
         rebuild_map ();
-        b = TRUE;
+        rebuilt = TRUE;
     }
 
-    auto ent = static_cast<SmbEntity*> (g_hash_table_lookup (entities, name));
-    if (!ent && !b)
+    auto entity = static_cast<SmbEntity*> (g_hash_table_lookup (entities, name));
+    if (!entity && !rebuilt)
     {
         DEBUG ('s', "Entity not found, rebuilding the database\n");
         rebuild_map ();
-        ent = static_cast<SmbEntity*> (g_hash_table_lookup (entities, name));
+        entity = static_cast<SmbEntity*> (g_hash_table_lookup (entities, name));
     }
 
-    if (ent)
+    if (entity)
         DEBUG ('s', "Found entity for %s\n", name);
     else
         DEBUG ('s', "No entity named %s found\n", name);
 
-    return ent;
+    return entity;
 }
diff --git a/src/gnome-cmd-smb-path.cc b/src/gnome-cmd-smb-path.cc
index 9385d979..6e687bae 100644
--- a/src/gnome-cmd-smb-path.cc
+++ b/src/gnome-cmd-smb-path.cc
@@ -56,35 +56,35 @@ GnomeCmdPath *GnomeCmdSmbPath::get_parent()
     if (!workgroup)
         return nullptr;
 
-    gchar *workgroupCharP = nullptr,
-          *resourceCharP = nullptr,
-          *resourcePathCharP = nullptr;
+    gchar *workgroupString = nullptr,
+          *resourceString = nullptr,
+          *resourceParentString = nullptr;
 
     if (resource)
     {
         if (resource_path)
         {
             auto *gFileTmp = g_file_new_for_uri (G_DIR_SEPARATOR_S);
-            auto gFile = g_file_resolve_relative_path (gFileTmp, resource_path);
+            auto resourcePathGFile = g_file_resolve_relative_path (gFileTmp, resource_path);
             g_object_unref(gFileTmp);
 
-            if (g_file_has_parent (gFile, nullptr))
+            if (g_file_has_parent (resourcePathGFile, nullptr))
             {
-                auto gFile2 = g_file_get_parent (gFile);
-                g_return_val_if_fail (gFile2 != nullptr, nullptr);
+                auto resourceParentGFile = g_file_get_parent (resourcePathGFile);
+                g_return_val_if_fail (resourceParentGFile != nullptr, nullptr);
 
-                resourcePathCharP = g_file_get_path (gFile2);
-                g_object_unref (gFile2);
+                resourceParentString = g_file_get_path (resourceParentGFile);
+                g_object_unref (resourceParentGFile);
             }
 
-            resourceCharP = resource;
-            g_object_unref (gFile);
+            resourceString = resource;
+            g_object_unref (resourcePathGFile);
         }
 
-        workgroupCharP = workgroup;
+        workgroupString = workgroup;
     }
 
-    return new GnomeCmdSmbPath(workgroupCharP, resourceCharP, resourcePathCharP);
+    return new GnomeCmdSmbPath(workgroupString, resourceString, resourceParentString);
 }
 
 


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