git.fiddlerwoaroof.com
Browse code

change param name

Greg Wiley authored on 25/04/2017 17:38:47
Showing 2 changed files
... ...
@@ -50,10 +50,10 @@ public:
50 50
         token_file.open (file_path);
51 51
         return token_file.good();
52 52
     }
53
-    std::string getline (std::ifstream &token_file, std::string &fetched_token)
53
+    std::string getline (std::ifstream &token_file, std::string &line)
54 54
     {
55
-        std::getline (token_file, fetched_token);
56
-        return fetched_token;
55
+        std::getline (token_file, line);
56
+        return line;
57 57
     }
58 58
 };
59 59
 }
... ...
@@ -35,7 +35,7 @@ public:
35 35
         return false;
36 36
     }
37 37
     virtual std::string getline (std::ifstream &token_file,
38
-                                 std::string &fetched_token)
38
+                                 std::string &line)
39 39
     {
40 40
         return "";
41 41
     }
... ...
@@ -55,9 +55,9 @@ public:
55 55
     {
56 56
         return delegate_->open (token_file, file_path);
57 57
     }
58
-    std::string getline (std::ifstream &token_file, std::string &fetched_token)
58
+    std::string getline (std::ifstream &token_file, std::string &line)
59 59
     {
60
-        return delegate_->getline (token_file, fetched_token);
60
+        return delegate_->getline (token_file, line);
61 61
     }
62 62
 
63 63
     static file_reader create ();