vars = CompatUtility::GetCustomAttributeConfig(command);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock xlock(vars);
for (const auto& kv : vars) {
vars = CompatUtility::GetCustomAttributeConfig(command);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock xlock(vars);
for (const auto& kv : vars) {
vars = CompatUtility::GetCustomAttributeConfig(command);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock xlock(vars);
for (const auto& kv : vars) {
vars = CompatUtility::GetCustomAttributeConfig(user);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
cv->Add(kv.first);
vars = CompatUtility::GetCustomAttributeConfig(user);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
if (kv.second.IsObjectType<Array>() || kv.second.IsObjectType<Dictionary>())
vars = CompatUtility::GetCustomAttributeConfig(user);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
Array::Ptr key_val = new Array();
vars = CompatUtility::GetCustomAttributeConfig(host);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
cv->Add(kv.first);
vars = CompatUtility::GetCustomAttributeConfig(host);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
if (kv.second.IsObjectType<Array>() || kv.second.IsObjectType<Dictionary>())
vars = CompatUtility::GetCustomAttributeConfig(host);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
Array::Ptr key_val = new Array();
vars = CompatUtility::GetCustomAttributeConfig(service);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
cv->Add(kv.first);
vars = CompatUtility::GetCustomAttributeConfig(service);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
if (kv.second.IsObjectType<Array>() || kv.second.IsObjectType<Dictionary>())
vars = CompatUtility::GetCustomAttributeConfig(service);
}
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
ObjectLock olock(vars);
for (const Dictionary::Pair& kv : vars) {
Array::Ptr key_val = new Array();
{
Dictionary::Ptr vars = IcingaApplication::GetInstance()->GetVars();
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock olock(vars);
for (const auto& kv : vars) {
{
Dictionary::Ptr vars = IcingaApplication::GetInstance()->GetVars();
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock olock(vars);
for (const auto& kv : vars) {
{
Dictionary::Ptr vars = IcingaApplication::GetInstance()->GetVars();
- if (!vars)
- return Empty;
-
Array::Ptr cv = new Array();
+ if (!vars)
+ return cv;
+
{
ObjectLock olock(vars);
for (const auto& kv : vars) {