diff layer/LayerFactory.cpp @ 11:2d5005f2b3d9

* Rework handling of layer properties in file I/O -- we now get the individual layers to load and save them rather than doing it via generic property lists in the base class, so as to ensure we read and write meaningful values rather than generic int values requiring conversion.
author Chris Cannam
date Thu, 19 Jan 2006 12:54:38 +0000
parents 06bba0b79b1c
children 0183ebb725ca
line wrap: on
line diff
--- a/layer/LayerFactory.cpp	Tue Jan 17 17:45:55 2006 +0000
+++ b/layer/LayerFactory.cpp	Thu Jan 19 12:54:38 2006 +0000
@@ -51,6 +51,8 @@
 	// fact -- there's nothing permanently melodic-range about it
 	// that should be encoded in its name
 	return Layer::tr("Spectrogram");
+
+    default: break;
     }
 
     return Layer::tr("Layer");
@@ -189,6 +191,8 @@
 	layer = new SpectrogramLayer(view, SpectrogramLayer::MelodicRange);
 	static_cast<SpectrogramLayer *>(layer)->setChannel(channel);
 	break;
+
+    default: break;
     }
 
     if (!layer) {