Minor changes (moved inline functions which throw to *.cpp files)

v0.27.3
Andreas Huggel 20 years ago
parent 9c20ef1edb
commit 7d3f50c244

@ -114,6 +114,12 @@ namespace Exiv2 {
if (rhs.value_.get() != 0) value_ = rhs.value_->clone(); // deep copy if (rhs.value_.get() != 0) value_ = rhs.value_->clone(); // deep copy
} }
const Value& Exifdatum::value() const
{
if (value_.get() == 0) throw Error(8);
return *value_;
}
Exifdatum& Exifdatum::operator=(const Exifdatum& rhs) Exifdatum& Exifdatum::operator=(const Exifdatum& rhs)
{ {
if (this == &rhs) return *this; if (this == &rhs) return *this;

@ -283,8 +283,7 @@ namespace Exiv2 {
@return A constant reference to the value. @return A constant reference to the value.
@throw Error if the value is not set. @throw Error if the value is not set.
*/ */
const Value& value() const const Value& value() const;
{ if (value_.get() != 0) return *value_; throw Error(8); }
//! Return the size of the data area. //! Return the size of the data area.
long sizeDataArea() const long sizeDataArea() const
{ return value_.get() == 0 ? 0 : value_->sizeDataArea(); } { return value_.get() == 0 ? 0 : value_->sizeDataArea(); }

@ -66,6 +66,12 @@ namespace Exiv2 {
{ {
} }
const Value& Iptcdatum::value() const
{
if (value_.get() == 0) throw Error(8);
return *value_;
}
Iptcdatum& Iptcdatum::operator=(const Iptcdatum& rhs) Iptcdatum& Iptcdatum::operator=(const Iptcdatum& rhs)
{ {
if (this == &rhs) return *this; if (this == &rhs) return *this;

@ -226,8 +226,7 @@ namespace Exiv2 {
@return A constant reference to the value. @return A constant reference to the value.
@throw Error If the value is not set. @throw Error If the value is not set.
*/ */
const Value& value() const const Value& value() const;
{ if (value_.get() != 0) return *value_; throw Error(8); }
//@} //@}
private: private:

Loading…
Cancel
Save