Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: refactor Thgstatus

add new static private SendRequest()

Changeset a38a9c7d18fa

Parent 66f6add7322d

by Adrian Buehlmann

Changes to 2 files · Browse files at a38a9c7d18fa Showing diff from parent 66f6add7322d Diff from another changeset...

 
33
34
35
36
 
37
38
39
 
 
40
41
42
43
44
45
46
47
48
49
 
33
34
35
 
36
37
 
 
38
39
40
41
42
43
44
 
 
45
46
47
@@ -33,17 +33,15 @@
 }     -int Thgstatus::update(const std::string& path) +int Thgstatus::SendRequest(const std::string& request)  { - static std::string pname = GetPipeName(); - + static const std::string pname = GetPipeName(); +   if (pname.empty())   return 0;     BOOL fSuccess;   DWORD cbRead; - - const std::string request = "update|" + path;     TDEBUG_TRACE("Thgstatus::update: sending '" << request << "' to " << pname);  
 
21
22
23
 
 
24
25
 
 
 
26
27
28
 
21
22
23
24
25
26
 
27
28
29
30
31
32
@@ -21,8 +21,12 @@
   class Thgstatus  { + static int SendRequest(const std::string& request); +  public: - static int update(const std::string& path); + static int update(const std::string& path) { + return SendRequest("update|" + path); + }  };    #endif