summaryrefslogtreecommitdiff
path: root/include/core/action.h
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-13 11:42:07 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-13 11:42:07 +0200
commit5b71849f2a59bc9c6f05444c024d0771b2b187f0 (patch)
treeed095a64a1a80359124e7a63afce7771403a0d29 /include/core/action.h
parentc4fdbc30f3ed3286dc9017633eb7e755a598d724 (diff)
downloadmobileperf-5b71849f2a59bc9c6f05444c024d0771b2b187f0.tar.gz
mobileperf-5b71849f2a59bc9c6f05444c024d0771b2b187f0.tar.bz2
Make CompAction *FromString functions return the information whether the conversion was successful or not.
Diffstat (limited to 'include/core/action.h')
-rw-r--r--include/core/action.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/core/action.h b/include/core/action.h
index b7e36db..a7e18fd 100644
--- a/include/core/action.h
+++ b/include/core/action.h
@@ -88,7 +88,7 @@ class CompAction {
unsigned int modifiers ();
int keycode ();
- bool fromString (const CompString str);
+ bool fromString (const CompString &str);
CompString toString ();
private:
@@ -104,7 +104,7 @@ class CompAction {
unsigned int modifiers ();
int button ();
- bool fromString (const CompString str);
+ bool fromString (const CompString &str);
CompString toString ();
private:
@@ -146,9 +146,9 @@ class CompAction {
bool operator== (const CompAction& val);
CompAction & operator= (const CompAction &action);
- void keyFromString (const CompString str);
- void buttonFromString (const CompString str);
- void edgeMaskFromString (const CompString str);
+ bool keyFromString (const CompString &str);
+ bool buttonFromString (const CompString &str);
+ bool edgeMaskFromString (const CompString &str);
CompString keyToString ();
CompString buttonToString ();