/[svn]/linuxsampler/trunk/src/common/optional.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/optional.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 456 by senkov, Sun Jun 20 15:12:05 2004 UTC revision 457 by schoenebeck, Mon Mar 14 22:29:46 2005 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6     *   Copyright (C) 2005 Christian Schoenebeck                              *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 67  namespace LinuxSampler { Line 68  namespace LinuxSampler {
68              }              }
69    
70              optional& operator =(const optional& arg) throw (LinuxSamplerException) {              optional& operator =(const optional& arg) throw (LinuxSamplerException) {
71                  if (!arg.initialized) LinuxSamplerException("optional variable not initialized");                  if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized");
72                  this->data  = arg.data;                  this->data  = arg.data;
73                  initialized = true;                  initialized = true;
74              }              }

Legend:
Removed from v.456  
changed lines
  Added in v.457

  ViewVC Help
Powered by ViewVC