diff layer/LayerFactory.h @ 1266:a34a2a25907c

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents b12cd1c2dad5
children 43a28a52f8ab
line wrap: on
line diff
--- a/layer/LayerFactory.h	Thu Mar 01 14:43:53 2018 +0000
+++ b/layer/LayerFactory.h	Thu Mar 01 18:02:22 2018 +0000
@@ -28,27 +28,27 @@
 public:
     enum LayerType {
 
-	// Standard layers
-	Waveform,
-	Spectrogram,
-	TimeRuler,
-	TimeInstants,
-	TimeValues,
-	Notes,
-	FlexiNotes,
-	Regions,
-	Text,
+        // Standard layers
+        Waveform,
+        Spectrogram,
+        TimeRuler,
+        TimeInstants,
+        TimeValues,
+        Notes,
+        FlexiNotes,
+        Regions,
+        Text,
         Image,
-	Colour3DPlot,
+        Colour3DPlot,
         Spectrum,
         Slice,
 
-	// Layers with different initial parameters
-	MelodicRangeSpectrogram,
-	PeakFrequencySpectrogram,
+        // Layers with different initial parameters
+        MelodicRangeSpectrogram,
+        PeakFrequencySpectrogram,
 
-	// Not-a-layer-type
-	UnknownLayer = 255
+        // Not-a-layer-type
+        UnknownLayer = 255
     };
 
     static LayerFactory *getInstance();
@@ -89,12 +89,12 @@
 protected:
     template <typename LayerClass, typename ModelClass>
     bool trySetModel(Layer *layerBase, Model *modelBase) {
-	LayerClass *layer = dynamic_cast<LayerClass *>(layerBase);
-	if (!layer) return false;
-	ModelClass *model = dynamic_cast<ModelClass *>(modelBase);
-	if (!model) return false;
-	layer->setModel(model);
-	return true;
+        LayerClass *layer = dynamic_cast<LayerClass *>(layerBase);
+        if (!layer) return false;
+        ModelClass *model = dynamic_cast<ModelClass *>(modelBase);
+        if (!model) return false;
+        layer->setModel(model);
+        return true;
     }
 
     static LayerFactory *m_instance;