From: Diego Barrios Romero Date: Tue, 23 Feb 2010 01:23:27 +0000 (+0100) Subject: Default illegal parameters in TargetParam. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=573a571d32fdbc60a726048cffd2ed412014c459;p=synfig.git Default illegal parameters in TargetParam. --- diff --git a/synfig-core/src/synfig/targetparam.h b/synfig-core/src/synfig/targetparam.h index adf905d..05c815d 100644 --- a/synfig-core/src/synfig/targetparam.h +++ b/synfig-core/src/synfig/targetparam.h @@ -33,7 +33,13 @@ namespace synfig { struct TargetParam { - TargetParam () { } + //! Default constructor + /*! Not valid default values, if they are not modified before + * passing them to the target module, it would override them with + * its own valid default settings. + */ + TargetParam (): video_codec("none"), bitrate(-1) { } + TargetParam (const std::string& Video_codec, int Bitrate): video_codec(Video_codec), bitrate(Bitrate) { }