launch_daemon: GCC4 build fix.
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
|||||||
virtual bool IsConstant(ConditionContext& context) const;
|
virtual bool IsConstant(ConditionContext& context) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ToString(BString& string) const;
|
void AddConditionsToString(BString& string) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BObjectList<Condition> fConditions;
|
BObjectList<Condition> fConditions;
|
||||||
@@ -199,7 +199,7 @@ ConditionContainer::IsConstant(ConditionContext& context) const
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ConditionContainer::ToString(BString& string) const
|
ConditionContainer::AddConditionsToString(BString& string) const
|
||||||
{
|
{
|
||||||
string += "[";
|
string += "[";
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ BString
|
|||||||
AndCondition::ToString() const
|
AndCondition::ToString() const
|
||||||
{
|
{
|
||||||
BString string = "and ";
|
BString string = "and ";
|
||||||
ConditionContainer::ToString(string);
|
ConditionContainer::AddConditionsToString(string);
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ BString
|
|||||||
OrCondition::ToString() const
|
OrCondition::ToString() const
|
||||||
{
|
{
|
||||||
BString string = "or ";
|
BString string = "or ";
|
||||||
ConditionContainer::ToString(string);
|
ConditionContainer::AddConditionsToString(string);
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ BString
|
|||||||
NotCondition::ToString() const
|
NotCondition::ToString() const
|
||||||
{
|
{
|
||||||
BString string = "not ";
|
BString string = "not ";
|
||||||
ConditionContainer::ToString(string);
|
ConditionContainer::AddConditionsToString(string);
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public:
|
|||||||
virtual void SetOwner(BaseJob* owner);
|
virtual void SetOwner(BaseJob* owner);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ToString(BString& string) const;
|
void AddEventsToString(BString& string) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BaseJob* fOwner;
|
BaseJob* fOwner;
|
||||||
@@ -304,7 +304,7 @@ EventContainer::SetOwner(BaseJob* owner)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
EventContainer::ToString(BString& string) const
|
EventContainer::AddEventsToString(BString& string) const
|
||||||
{
|
{
|
||||||
string += "[";
|
string += "[";
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ BString
|
|||||||
OrEvent::ToString() const
|
OrEvent::ToString() const
|
||||||
{
|
{
|
||||||
BString string = "or ";
|
BString string = "or ";
|
||||||
EventContainer::ToString(string);
|
EventContainer::AddEventsToString(string);
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include "Job.h"
|
#include "Job.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
#include <Looper.h>
|
#include <Looper.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
@@ -342,7 +344,7 @@ Job::Launch()
|
|||||||
BString signature("application/");
|
BString signature("application/");
|
||||||
signature << Name();
|
signature << Name();
|
||||||
return BRoster::Private().Launch(signature.String(), NULL, NULL,
|
return BRoster::Private().Launch(signature.String(), NULL, NULL,
|
||||||
0, NULL, environment.begin(), &fTeam);
|
0, NULL, &environment[0], &fTeam);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build argument vector
|
// Build argument vector
|
||||||
@@ -363,8 +365,8 @@ Job::Launch()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Launch via entry_ref
|
// Launch via entry_ref
|
||||||
return BRoster::Private().Launch(NULL, &ref, NULL, count, args.begin(),
|
return BRoster::Private().Launch(NULL, &ref, NULL, count, &args[0],
|
||||||
environment.begin(), &fTeam);
|
&environment[0], &fTeam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
#include "SettingsParser.h"
|
#include "SettingsParser.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <DriverSettingsMessageAdapter.h>
|
#include <DriverSettingsMessageAdapter.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -55,15 +57,15 @@ public:
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
BMessage* add = ⌖
|
BMessage* add = ⌖
|
||||||
bool notExpr = parameter.value_count > 1
|
bool notOperator = parameter.value_count > 1
|
||||||
&& strcmp(parameter.values[0], "not") == 0;
|
&& strcmp(parameter.values[0], "not") == 0;
|
||||||
if (notExpr) {
|
if (notOperator) {
|
||||||
add = &message;
|
add = &message;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t status = AddSubMessage(parameter, index, *add);
|
status_t status = AddSubMessage(parameter, index, *add);
|
||||||
if (status == B_OK && notExpr)
|
if (status == B_OK && notOperator)
|
||||||
status = target.AddMessage("not", &message);
|
status = target.AddMessage("not", &message);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in New Issue
Block a user