Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/onlinejobtyped.h
Context not available. | |||||
101 | : onlineJob(task, id), | 101 | : onlineJob(task, id), | ||
---|---|---|---|---|---|
102 | m_taskTyped(task) | 102 | m_taskTyped(task) | ||
103 | { | 103 | { | ||
104 | if (task == 0) | 104 | if (!task) | ||
105 | throw emptyTask(__FILE__, __LINE__); | 105 | throw EMPTYTASKEXCEPTION(); | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | template<class T> | 108 | template<class T> | ||
Context not available. | |||||
127 | : onlineJob(other) | 127 | : onlineJob(other) | ||
128 | { | 128 | { | ||
129 | m_taskTyped = dynamic_cast<T*>(onlineJob::task()); // can throw emptyTask | 129 | m_taskTyped = dynamic_cast<T*>(onlineJob::task()); // can throw emptyTask | ||
130 | if (m_taskTyped == 0) | 130 | if (!m_taskTyped) | ||
131 | throw badTaskCast(__FILE__, __LINE__); | 131 | throw BADTASKEXCEPTION(); | ||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | template<class T> | 134 | template<class T> | ||
Context not available. |