--- linuxsampler/trunk/src/common/optional.h 2004/06/20 15:12:05 134 +++ linuxsampler/trunk/src/common/optional.h 2005/03/14 22:29:46 457 @@ -3,6 +3,7 @@ * LinuxSampler - modular, streaming capable sampler * * * * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * + * Copyright (C) 2005 Christian Schoenebeck * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -67,7 +68,7 @@ } optional& operator =(const optional& arg) throw (LinuxSamplerException) { - if (!arg.initialized) LinuxSamplerException("optional variable not initialized"); + if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized"); this->data = arg.data; initialized = true; }