]> granicus.if.org Git - icinga2/commitdiff
Fix a couple of wrong white spaces
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 18 Sep 2015 11:04:09 +0000 (13:04 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 18 Sep 2015 11:04:09 +0000 (13:04 +0200)
14 files changed:
icinga-studio/api.cpp
lib/base/configobject.cpp
lib/cli/objectlistcommand.cpp
lib/cli/objectlistutility.cpp
lib/remote/httpresponse.cpp
plugins/check_load.cpp
plugins/check_memory.cpp
plugins/check_perfmon.cpp
plugins/check_ping.cpp
plugins/check_swap.cpp
plugins/check_update.cpp
plugins/check_uptime.cpp
plugins/check_users.cpp
plugins/thresholds.cpp

index ac9073dd1b17f914e2c49381876a7f3d6710dd9c..7a1bc31a9ce0ab389b064b3debe35e1e33043577 100644 (file)
@@ -162,4 +162,4 @@ void ApiClient::ObjectsHttpCompletionCallback(HttpRequest& request,
        }
 
        callback(objects);
-}
\ No newline at end of file
+}
index 58e279eaa6d2b75e7943af6740f89795f28a8ae0..6d3dff5445f6dd0faf5a559ca5e532825a5024b8 100644 (file)
@@ -121,15 +121,15 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
        bool updated_original_attributes = false;
 
        Type::Ptr type = GetReflectionType();
-       
+
        std::vector<String> tokens;
        boost::algorithm::split(tokens, attr, boost::is_any_of("."));
-       
+
        String fieldName = tokens[0];
-       
+
        int fid = type->GetFieldId(fieldName);
        Field field = type->GetFieldInfo(fid);
-       
+
        Value oldValue = GetField(fid);
 
        if (field.Attributes & FAConfig) {
@@ -143,25 +143,25 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
                        original_attributes->Set(attr, oldValue);
                }
        }
-       
+
        Value newValue;
-       
+
        if (tokens.size() > 1) {
                newValue = oldValue.Clone();
                Value current = newValue;
-               
+
                if (current.IsEmpty()) {
                        current = new Dictionary();
                        newValue = current;
                }
-       
+
                for (std::vector<String>::size_type i = 1; i < tokens.size() - 1; i++) {
                        if (!current.IsObjectType<Dictionary>())
                                BOOST_THROW_EXCEPTION(std::invalid_argument("Value must be a dictionary."));
 
                        Dictionary::Ptr dict = current;
                        const String& key = tokens[i];
-                       
+
                        if (!dict->Contains(key)) {
                                current = new Dictionary();
                                dict->Set(key, current);
@@ -169,13 +169,13 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
                                current = dict->Get(key);
                        }
                }
-               
+
                if (!current.IsObjectType<Dictionary>())
                        BOOST_THROW_EXCEPTION(std::invalid_argument("Value must be a dictionary."));
-       
+
                Dictionary::Ptr dict = current;
                const String& key = tokens[tokens.size() - 1];
-               
+
                dict->Set(key, value);
        } else
                newValue = value;
@@ -259,7 +259,7 @@ void ConfigObject::Activate(void)
        }
 
        SetAuthority(true);
-       
+
        NotifyActive();
 }
 
index 0856362cb52a530d8a5481822d4a60cfe0f76d21..0ad2ddc380ee4cc70c9614dda1ba6481b548b61e 100644 (file)
@@ -137,4 +137,4 @@ void ObjectListCommand::PrintTypeCounts(std::ostream& fp, const std::map<String,
 
                fp << ".\n";
        }
-}
\ No newline at end of file
+}
index 746fe9f6626e33460e9978ce35a12726c9a2b263..14b46a737ff325183904bed63638526170b52ef5 100644 (file)
@@ -151,4 +151,4 @@ void ObjectListUtility::PrintArray(std::ostream& fp, const Array::Ptr& arr)
                fp << " ";
 
        fp << "]";
-}
\ No newline at end of file
+}
index f3fe6a790f0800d7ccabfd3a7497c95683d39f5b..edb9eda7630aa6d28af5690281a30553663f00ee 100644 (file)
@@ -231,4 +231,4 @@ size_t HttpResponse::ReadBody(char *data, size_t count)
                return 0;
        else
                return m_Body->Read(data, count, true);
-}
\ No newline at end of file
+}
index f741cd24e63ad8cbd8807ff8e59745d93feecc7e..3c6ba3983e72f309a54ff585a0f99c5f6c137fbd 100644 (file)
@@ -250,4 +250,4 @@ die:
        if (phQuery)
                PdhCloseQuery(phQuery);
        return 3;
-}
\ No newline at end of file
+}
index ef8c10eec94f9945b61dfe2794a4610decbaf3b1..229361052a6bc940cc33b717db17ef3abf03afaf 100644 (file)
@@ -213,4 +213,4 @@ INT check_memory(printInfoStruct& printInfo)
        delete pMemBuf;
 
        return -1;
-}
\ No newline at end of file
+}
index a068b117f9d3dece373f66f1f846f0c9bdf8913b..02b1186203b29463924fee9e544fe5f88acb933a 100644 (file)
@@ -400,4 +400,4 @@ VOID FormatPDHError(PDH_STATUS status)
 
        std::wcout << pMessage << '\n';
        LocalFree(pMessage);
-}
\ No newline at end of file
+}
index cde32f25bead3db0e716d72282d40e3fe36d2960..d93ed96667e425155ad7c34ba230abf0dea1f170 100644 (file)
@@ -444,4 +444,4 @@ die:
                delete reinterpret_cast<VOID *>(repBuf);
 
        return 3;
-}
\ No newline at end of file
+}
index fde4e175206e777118d3f67b8069ae4f0ffe06dd..320cc8fdf6787051fe631fd2a40235819abb3dae 100644 (file)
@@ -206,4 +206,4 @@ INT check_swap(printInfoStruct& printInfo)
        printInfo.aSwap = round(MemBuf.ullAvailPageFile / pow(1024.0, printInfo.unit));
 
        return -1;
-}
\ No newline at end of file
+}
index d17406559c6ff62c5884f430091023519a3629db..16aa679252e50ce84b71c6f06bf693c9dd70ad04 100644 (file)
@@ -249,4 +249,4 @@ die:
        if (criteria)
                SysFreeString(criteria);
        return 3;
-}
\ No newline at end of file
+}
index 96a25fe5c54ef88e54b32a072ca53513beb6f78b..d26977269bc6ab53149f8747ef84b17f8d0721ce 100644 (file)
@@ -216,4 +216,4 @@ VOID getUptime(printInfoStruct& printInfo)
                printInfo.time = uptime.count();
                break;
        }
-}
\ No newline at end of file
+}
index e5bdd69d3cd22e91f1d8cdec19f58c13cf7ba559..ed161ed44153f43d0bff560cab0de10c343081bc 100644 (file)
@@ -232,4 +232,4 @@ INT check_users(printInfoStruct& printInfo)
        WTSFreeMemory(pSessionInfo);
        printInfo.users = users;
        return -1;
-}
\ No newline at end of file
+}
index 83fa0239caec02c81cdec7890ba457f339f67a37..16fa5ed92606572e9544833ee7bb8360aa8bcd0c 100644 (file)
@@ -226,4 +226,4 @@ VOID die(DWORD err)
                        std::wcout << "Failed to format error message, last error was: " << err << '\n';
        else
                std::wcout << mBuf << std::endl;
-}
\ No newline at end of file
+}