Removed whitespace after line end, accoring to Google style guidelines "whitespace/end_of_line"
This commit is contained in:
parent
e38eb0f72d
commit
fb79664508
6 changed files with 53 additions and 57 deletions
|
@ -59,7 +59,6 @@ void EventHandler::signal(Event *event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EventHandler::waitForAny() {
|
bool EventHandler::waitForAny() {
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
int result = WaitForMultipleObjects(d->eventCount, d->eventArray, FALSE, 1000);
|
int result = WaitForMultipleObjects(d->eventCount, d->eventArray, FALSE, 1000);
|
||||||
if (result == WAIT_TIMEOUT) {
|
if (result == WAIT_TIMEOUT) {
|
||||||
|
|
|
@ -60,7 +60,6 @@ ConnectionListener::ConnectionListener(const std::wstring &name, TelldusCore::Ev
|
||||||
ea.Trustee.TrusteeType = TRUSTEE_IS_WELL_KNOWN_GROUP;
|
ea.Trustee.TrusteeType = TRUSTEE_IS_WELL_KNOWN_GROUP;
|
||||||
ea.Trustee.ptstrName = (LPTSTR) pEveryoneSID;
|
ea.Trustee.ptstrName = (LPTSTR) pEveryoneSID;
|
||||||
|
|
||||||
|
|
||||||
// Add the ACL to the security descriptor.
|
// Add the ACL to the security descriptor.
|
||||||
if (!SetSecurityDescriptorDacl(pSD,
|
if (!SetSecurityDescriptorDacl(pSD,
|
||||||
TRUE, // bDaclPresent flag
|
TRUE, // bDaclPresent flag
|
||||||
|
|
|
@ -133,7 +133,6 @@ int Settings::getNextNodeId(Node type) const {
|
||||||
long lnExists = RegCreateKeyEx(d->rootKey, d->getNodePath(type).c_str(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hk, &dwDisp); //create or open if already created
|
long lnExists = RegCreateKeyEx(d->rootKey, d->getNodePath(type).c_str(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hk, &dwDisp); //create or open if already created
|
||||||
|
|
||||||
if(lnExists == ERROR_SUCCESS) {
|
if(lnExists == ERROR_SUCCESS) {
|
||||||
|
|
||||||
DWORD dwLength = sizeof(DWORD);
|
DWORD dwLength = sizeof(DWORD);
|
||||||
DWORD nResult(0);
|
DWORD nResult(0);
|
||||||
|
|
||||||
|
@ -146,7 +145,6 @@ int Settings::getNextNodeId(Node type) const {
|
||||||
}
|
}
|
||||||
DWORD dwVal = intReturn;
|
DWORD dwVal = intReturn;
|
||||||
RegSetValueEx (hk, L"LastUsedId", 0L, REG_DWORD, (CONST BYTE*) &dwVal, sizeof(DWORD));
|
RegSetValueEx (hk, L"LastUsedId", 0L, REG_DWORD, (CONST BYTE*) &dwVal, sizeof(DWORD));
|
||||||
|
|
||||||
}
|
}
|
||||||
RegCloseKey(hk);
|
RegCloseKey(hk);
|
||||||
return intReturn;
|
return intReturn;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue