Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyprice.cpp
Context not available. | |||||
65 | d_ptr(new MyMoneyPricePrivate) | 65 | d_ptr(new MyMoneyPricePrivate) | ||
---|---|---|---|---|---|
66 | { | 66 | { | ||
67 | if ("PRICE" != node.tagName()) | 67 | if ("PRICE" != node.tagName()) | ||
68 | throw MYMONEYEXCEPTION("Node was not PRICE"); | 68 | throw MYMONEYEXCEPTION_CSTRING("Node was not PRICE"); | ||
69 | 69 | | |||
70 | Q_D(MyMoneyPrice); | 70 | Q_D(MyMoneyPrice); | ||
71 | d->m_fromSecurity = from; | 71 | d->m_fromSecurity = from; | ||
Context not available. | |||||
122 | if (id == d->m_fromSecurity) | 122 | if (id == d->m_fromSecurity) | ||
123 | return d->m_invRate; | 123 | return d->m_invRate; | ||
124 | 124 | | |||
125 | QString msg = QString("Unknown security id %1 for price info %2/%3.").arg(id).arg(d->m_fromSecurity).arg(d->m_toSecurity); | 125 | throw MYMONEYEXCEPTION(QString::fromLatin1("Unknown security id %1 for price info %2/%3.").arg(id, d->m_fromSecurity, d->m_toSecurity)); | ||
126 | throw MYMONEYEXCEPTION(msg); | | |||
127 | } | 126 | } | ||
128 | 127 | | |||
129 | QDate MyMoneyPrice::date() const | 128 | QDate MyMoneyPrice::date() const | ||
Context not available. |