[gnome-commander] noop: rename a variable
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: rename a variable
- Date: Tue, 5 Oct 2021 20:09:31 +0000 (UTC)
commit c7c10a89909ab64149f8f582e27c41d1a20c725e
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Oct 5 22:07:01 2021 +0200
noop: rename a variable
src/gnome-cmd-con.cc | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index 7040a359..409a8003 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -639,7 +639,7 @@ string &__gnome_cmd_con_make_uri (string &s, const gchar *method, gboolean use_a
}
#ifdef HAVE_SAMBA
-std::string &gnome_cmd_con_make_smb_uri (std::string &s, gboolean use_auth, std::string &server, std::string
&share, std::string &folder, std::string &domain, std::string &user, std::string &password)
+std::string &gnome_cmd_con_make_smb_uri (std::string &uriString, gboolean use_auth, std::string &server,
std::string &share, std::string &folder, std::string &domain, std::string &user, std::string &password)
{
user = stringify (g_strescape (user.c_str(), nullptr));
password = stringify (g_strescape (password.c_str(), nullptr));
@@ -662,15 +662,15 @@ std::string &gnome_cmd_con_make_smb_uri (std::string &s, gboolean use_auth, std:
folder = folder.length() == 1 ? folder.erase() : folder.substr(1);
}
- s = "smb://";
+ uriString = "smb://";
if (!user.empty())
- s += user + '@';
+ uriString += user + '@';
- s += server;
- s += "/";
- s += folder;
+ uriString += server;
+ uriString += "/";
+ uriString += folder;
- return s;
+ return uriString;
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]