Skip to content

Commit

Permalink
libdeng2|OperatorRule: Simplified template
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 19, 2013
1 parent 9c297a5 commit ba1a0e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdeng2/include/de/widgets/operatorrule.h
Expand Up @@ -160,8 +160,8 @@ inline OperatorRule &operator / (Rule const &left, Rule const &right) {
return *refless(new OperatorRule(OperatorRule::Divide, left, right));
}

template <typename RuleType1, typename RuleType2>
inline void sumInto(RuleType1 const *&sum, RuleType2 const &value) {
template <typename RuleType>
inline void sumInto(RuleType const *&sum, Rule const &value) {
if(!sum) { sum = holdRef(value); }
else { changeRef(sum, *sum + value); }
}
Expand Down

0 comments on commit ba1a0e1

Please sign in to comment.