Author: jkupec Date: Wed Mar 12 15:54:02 2008 New Revision: 9105 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9105&view=rev Log: - one more fix - having a reference as exception data is probably not a good idea Modified: trunk/libzypp/zypp/media/MediaException.h Modified: trunk/libzypp/zypp/media/MediaException.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/media/MediaException.h?rev=9105&r1=9104&r2=9105&view=diff ============================================================================== --- trunk/libzypp/zypp/media/MediaException.h (original) +++ trunk/libzypp/zypp/media/MediaException.h Wed Mar 12 15:54:02 2008 @@ -37,14 +37,13 @@ /** Ctor taking message. * Use \ref ZYPP_THROW to throw exceptions. */ - MediaException() : Exception( "Media Exception" ), - _devices(std::vectorstd::string()), _dev_current(0) + MediaException() : Exception( "Media Exception" ), _dev_current(0) {} /** Ctor taking message. * Use \ref ZYPP_THROW to throw exceptions. */ MediaException( const std::string & msg_r ) - : Exception( msg_r ), _devices(std::vectorstd::string()), _dev_current(0) + : Exception( msg_r ), _dev_current(0) {} /** @@ -65,10 +64,10 @@ /** Dtor. */ virtual ~MediaException() throw() {}; - protected: - void operator = (const MediaException & ex) {} +// private: +// void operator = (const MediaException & ex) {} private: - const std::vectorstd::string & _devices; + std::vectorstd::string _devices; unsigned int _dev_current; }; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org