Removed blank lines at start/end of code blocks according to Google style guidelines "whitespace/blank_line"
This commit is contained in:
parent
68a041edb4
commit
fcb798d466
5 changed files with 0 additions and 9 deletions
|
@ -150,7 +150,6 @@ std::wstring Socket::read(int timeout) {
|
|||
}
|
||||
|
||||
void Socket::write(const std::wstring &msg) {
|
||||
|
||||
OVERLAPPED oOverlap;
|
||||
DWORD bytesWritten = 0;
|
||||
int result;
|
||||
|
|
|
@ -46,7 +46,6 @@ inline void dlog(const char *fmt, ...) {
|
|||
}
|
||||
|
||||
inline void debuglogfilename(const int intMessage, const std::string strMessage, const std::string filename) {
|
||||
|
||||
#ifdef _WINDOWS
|
||||
static bool firstRun = true;
|
||||
std::ofstream file;
|
||||
|
|
|
@ -60,7 +60,6 @@ int Settings::getNumberOfNodes(Node type) const {
|
|||
long lnExists = RegOpenKeyEx(d->rootKey, d->getNodePath(type).c_str(), 0, KEY_QUERY_VALUE, &hk);
|
||||
|
||||
if(lnExists == ERROR_SUCCESS) {
|
||||
|
||||
std::wstring strNumSubKeys;
|
||||
DWORD dNumSubKeys;
|
||||
RegQueryInfoKey(hk, NULL, NULL, NULL, &dNumSubKeys, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
@ -82,7 +81,6 @@ int Settings::getNodeId(Node type, int intNodeIndex) const {
|
|||
long lnExists = RegOpenKeyEx(d->rootKey, d->getNodePath(type).c_str(), 0, KEY_READ, &hk);
|
||||
|
||||
if(lnExists == ERROR_SUCCESS) {
|
||||
|
||||
wchar_t* Buff = new wchar_t[intMaxRegValueLength];
|
||||
DWORD size = intMaxRegValueLength;
|
||||
if (RegEnumKeyEx(hk, intNodeIndex, (LPWSTR)Buff, &size, NULL, NULL, NULL, NULL) == ERROR_SUCCESS) {
|
||||
|
@ -223,7 +221,6 @@ std::wstring Settings::getStringSetting(Node type, int intNodeId, const std::wst
|
|||
}
|
||||
|
||||
int Settings::setStringSetting(Node type, int intNodeId, const std::wstring &name, const std::wstring &value, bool parameter) {
|
||||
|
||||
HKEY hk;
|
||||
int ret = TELLSTICK_SUCCESS;
|
||||
|
||||
|
@ -241,7 +238,6 @@ int Settings::setStringSetting(Node type, int intNodeId, const std::wstring &nam
|
|||
RegCloseKey(hk);
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
int Settings::getIntSetting(Node type, int intNodeId, const std::wstring &name, bool parameter) const {
|
||||
|
|
|
@ -29,7 +29,6 @@ TelldusWinService::~TelldusWinService() {
|
|||
delete tm;
|
||||
}
|
||||
|
||||
|
||||
void TelldusWinService::stop() {
|
||||
tm->stop();
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ public:
|
|||
static void WINAPI serviceMain( DWORD /*argc*/, TCHAR* /*argv*/[] );
|
||||
|
||||
protected:
|
||||
|
||||
void stop();
|
||||
|
||||
DWORD WINAPI serviceControlHandler( DWORD controlCode, DWORD dwEventType, LPVOID lpEventData );
|
||||
|
@ -36,6 +35,5 @@ private:
|
|||
SERVICE_STATUS_HANDLE serviceStatusHandle;
|
||||
|
||||
static DWORD WINAPI serviceControlHandler( DWORD controlCode, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext );
|
||||
|
||||
};
|
||||
#endif // TELLDUS_CORE_SERVICE_TELLDUSWINSERVICE_WIN_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue