Skip to content

Commit

Permalink
Refactor|libdeng2|Client: Renamed DENG2_IS_AS_METHODS
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 23, 2013
1 parent db58a47 commit 141474b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/include/ui/widgets/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Item

QVariant const &data() const { return _data; }

DENG2_IS_AS_METHODS()
DENG2_AS_IS_METHODS()

protected:
/**
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/world/grabbable.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Grabbable

virtual ~Grabbable();

DENG2_IS_AS_METHODS()
DENG2_AS_IS_METHODS()

/**
* Returns @c true iff the grabbable is currently grabbed.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/include/world/mapelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MapElement
*/
int type() const;

/// @todo Should use DENG2_IS_AS_METHODS() to avoid cost of dynamic_cast.
/// @todo Should use DENG2_AS_IS_METHODS() to avoid cost of dynamic_cast.
template <typename Type>
inline Type *as()
{
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/core/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class DENG2_PUBLIC Event
bool isMouse() const { return _type == MouseButton || _type == MouseMotion ||
_type == MousePosition || _type == MouseWheel; }

DENG2_IS_AS_METHODS()
DENG2_AS_IS_METHODS()

private:
int _type;
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/data/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Info
bool isBlock() const { return _type == Block; }
String const &name() const { return _name; }

DENG2_IS_AS_METHODS()
DENG2_AS_IS_METHODS()

void setName(String const &name) { _name = name.toLower(); }

Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/libdeng2.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
#define DENG2_NO_COPY(ClassName) \
private: ClassName(ClassName const &);

#define DENG2_IS_AS_METHODS() \
#define DENG2_AS_IS_METHODS() \
template <typename T_> \
bool is() const { return dynamic_cast<T_ const *>(this) != 0; } \
template <typename T_> \
Expand Down
2 changes: 1 addition & 1 deletion doomsday/libdeng2/include/de/widgets/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class DENG2_PUBLIC Widget
Widget(String const &name = "");
virtual ~Widget();

DENG2_IS_AS_METHODS()
DENG2_AS_IS_METHODS()

/**
* Returns the automatically generated, unique identifier of the widget.
Expand Down

0 comments on commit 141474b

Please sign in to comment.