Author: mlandres Date: Tue Jul 17 15:56:42 2007 New Revision: 6049 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6049&view=rev Log: allow optional media number in setLocation and ctor (default 1) Modified: trunk/libzypp/zypp/OnMediaLocation.h Modified: trunk/libzypp/zypp/OnMediaLocation.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/OnMediaLocation.h?rev=6049&r1=6048&r2=6049&view=diff ============================================================================== --- trunk/libzypp/zypp/OnMediaLocation.h (original) +++ trunk/libzypp/zypp/OnMediaLocation.h Tue Jul 17 15:56:42 2007 @@ -45,7 +45,7 @@ {} /** Ctor taking a filename and media number (defaults to 1). */ - OnMediaLocation( const Pathname & filename_r, unsigned medianr_r ) + OnMediaLocation( const Pathname & filename_r, unsigned medianr_r = 1 ) : _medianr( medianr_r ) , _filename( filename_r ) {} @@ -65,7 +65,7 @@ /** Set filename and media number (defaults to \c 1). */ OnMediaLocation & setLocation( const Pathname & val_r, - unsigned mediaNumber_r ) + unsigned mediaNumber_r = 1 ) { _filename = val_r; _medianr = mediaNumber_r; return *this; } /** Set the files size. */ -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org