pmaports/luna/activitymanager/compile.patch
Alex Roth 04d73a5824 Add packages and configuration changes to allow Luna to start in QEMU (#1016)
* Added a lot more Luna packages. It is now possible to start Luna, complete the first use app, and use the system. ARM support still broken.
* Cleanup & testing fixes. Starting in a fresh qemu environment works, but isn't quite deterministic. See wiki page for details
2017-12-17 18:25:59 +00:00

44 lines
1.2 KiB
Diff

diff --git a/src/Activity.cpp b/src/Activity.cpp
index b44f14f..01809e0 100644
--- a/src/Activity.cpp
+++ b/src/Activity.cpp
@@ -381,7 +381,7 @@ void Activity::ClearTrigger()
bool Activity::HasTrigger() const
{
- return m_trigger;
+ return !!m_trigger;
}
void Activity::Triggered(boost::shared_ptr<Trigger> trigger)
@@ -417,7 +417,7 @@ boost::shared_ptr<Callback> Activity::GetCallback()
bool Activity::HasCallback() const
{
- return m_callback;
+ return !!m_callback;
}
void Activity::CallbackFailed(boost::shared_ptr<Callback> callback,
@@ -983,7 +983,7 @@ boost::shared_ptr<PowerActivity> Activity::GetPowerActivity()
bool Activity::IsPowerActivity() const
{
- return m_powerActivity;
+ return !!m_powerActivity;
}
void Activity::PowerLockedNotification()
diff --git a/src/MojoTriggerSubscription.cpp b/src/MojoTriggerSubscription.cpp
index fada064..3fcd2a6 100644
--- a/src/MojoTriggerSubscription.cpp
+++ b/src/MojoTriggerSubscription.cpp
@@ -60,7 +60,7 @@ void MojoTriggerSubscription::Unsubscribe()
bool MojoTriggerSubscription::IsSubscribed() const
{
- return m_call;
+ return !!m_call;
}
void MojoTriggerSubscription::ProcessResponse(MojServiceMessage *msg,