]>
Commit | Line | Data |
---|---|---|
870007e9 JB |
1 | --- ekglog-20031103/src/command.cc.orig Fri Oct 17 18:06:20 2003 |
2 | +++ ekglog-20031103/src/command.cc Mon Nov 3 10:19:45 2003 | |
3 | @@ -28,19 +28,6 @@ | |
4 | command_base::~command_base() {} | |
5 | ||
6 | ||
7 | -/* | |
8 | - * command::is_equal() | |
9 | - * operator==() | |
10 | - * | |
11 | - * czy identyfikator komendy odpowiada podanemu stringowi | |
12 | - * | |
13 | - * - str - string do sprawdzenia | |
14 | - */ | |
15 | -inline bool command_base::is_equal(const std::string &str) const { | |
16 | - return _id == str; | |
17 | -} | |
18 | - | |
19 | - | |
20 | bool operator==(const command_base &c, const std::string &str) { | |
21 | return c.is_equal(str); | |
22 | } | |
23 | --- ekglog-20031103/src/command.hh.orig Sat Nov 1 21:08:05 2003 | |
24 | +++ ekglog-20031103/src/command.hh Mon Nov 3 10:19:45 2003 | |
25 | @@ -60,7 +60,16 @@ | |
26 | const std::string &name(void) | |
27 | { return _id; } | |
28 | ||
29 | - bool is_equal(const std::string &str) const; | |
30 | +/* | |
31 | + * command::is_equal() | |
32 | + * operator==() | |
33 | + * | |
34 | + * czy identyfikator komendy odpowiada podanemu stringowi | |
35 | + * | |
36 | + * - str - string do sprawdzenia | |
37 | + */ | |
38 | + bool is_equal(const std::string &str) const | |
39 | + { return _id == str; } | |
40 | ||
41 | protected: | |
42 |