changeset 1407:05d614f6e46d fix-static-analysis

Header guards
author Chris Cannam
date Mon, 26 Nov 2018 13:52:57 +0000
parents a18e78b9c78b
children c8a6fd3f9dff
files layer/ColourDatabase.h layer/FlexiNoteLayer.h layer/ImageLayer.h layer/ImageRegionFinder.h layer/Layer.h layer/ShowLayerCommand.h layer/SliceableLayer.h layer/TextLayer.h layer/TimeInstantLayer.h layer/TimeRulerLayer.h layer/WaveformLayer.h widgets/ActivityLog.h widgets/AudioDial.h widgets/ClickableLabel.h widgets/ColourNameDialog.h widgets/CommandHistory.h widgets/IconLoader.h widgets/ImageDialog.h widgets/InteractiveFileFinder.h widgets/ItemEditDialog.h widgets/KeyReference.h widgets/LabelCounterInputDialog.h widgets/LayerTree.h widgets/LayerTreeDialog.h widgets/ListInputDialog.h widgets/MIDIFileImportDialog.h widgets/NotifyingCheckBox.h widgets/NotifyingTabBar.h widgets/PluginParameterBox.h widgets/PluginParameterDialog.h widgets/ProgressDialog.h widgets/PropertyStack.h widgets/RangeInputDialog.h widgets/SelectableLabel.h widgets/TextAbbrev.h widgets/TipDialog.h widgets/TransformFinder.h widgets/WindowShapePreview.h widgets/WindowTypeSelector.h
diffstat 39 files changed, 77 insertions(+), 77 deletions(-) [+]
line wrap: on
line diff
--- a/layer/ColourDatabase.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/ColourDatabase.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _COLOUR_DATABASE_H_
-#define _COLOUR_DATABASE_H_
+#ifndef SV_COLOUR_DATABASE_H
+#define SV_COLOUR_DATABASE_H
 
 #include <QObject>
 #include <QString>
--- a/layer/FlexiNoteLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/FlexiNoteLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _FLEXINOTE_LAYER_H_
-#define _FLEXINOTE_LAYER_H_
+#ifndef SV_FLEXINOTE_LAYER_H
+#define SV_FLEXINOTE_LAYER_H
 
 #define NOTE_HEIGHT 16
 
--- a/layer/ImageLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/ImageLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _IMAGE_LAYER_H_
-#define _IMAGE_LAYER_H_
+#ifndef SV_IMAGE_LAYER_H
+#define SV_IMAGE_LAYER_H
 
 #include "Layer.h"
 #include "data/model/ImageModel.h"
--- a/layer/ImageRegionFinder.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/ImageRegionFinder.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _IMAGE_REGION_FINDER_H_
-#define _IMAGE_REGION_FINDER_H_
+#ifndef SV_IMAGE_REGION_FINDER_H
+#define SV_IMAGE_REGION_FINDER_H
 
 #include <QColor>
 #include <QRect>
--- a/layer/Layer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/Layer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _LAYER_H_
-#define _LAYER_H_
+#ifndef SV_LAYER_H
+#define SV_LAYER_H
 
 #include "base/PropertyContainer.h"
 #include "base/XmlExportable.h"
--- a/layer/ShowLayerCommand.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/ShowLayerCommand.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _SHOW_LAYER_COMMAND_H_
-#define _SHOW_LAYER_COMMAND_H_
+#ifndef SV_SHOW_LAYER_COMMAND_H
+#define SV_SHOW_LAYER_COMMAND_H
 
 #include "base/Command.h"
 
--- a/layer/SliceableLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/SliceableLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _SLICEABLE_LAYER_H_
-#define _SLICEABLE_LAYER_H_
+#ifndef SV_SLICEABLE_LAYER_H
+#define SV_SLICEABLE_LAYER_H
 
 #include "Layer.h"
 
--- a/layer/TextLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/TextLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TEXT_LAYER_H_
-#define _TEXT_LAYER_H_
+#ifndef SV_TEXT_LAYER_H
+#define SV_TEXT_LAYER_H
 
 #include "SingleColourLayer.h"
 #include "data/model/TextModel.h"
--- a/layer/TimeInstantLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/TimeInstantLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TIME_INSTANT_LAYER_H_
-#define _TIME_INSTANT_LAYER_H_
+#ifndef SV_TIME_INSTANT_LAYER_H
+#define SV_TIME_INSTANT_LAYER_H
 
 #include "SingleColourLayer.h"
 #include "data/model/SparseOneDimensionalModel.h"
--- a/layer/TimeRulerLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/TimeRulerLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TIME_RULER_H_
-#define _TIME_RULER_H_
+#ifndef SV_TIME_RULER_H
+#define SV_TIME_RULER_H
 
 #include "SingleColourLayer.h"
 
--- a/layer/WaveformLayer.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/layer/WaveformLayer.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _WAVEFORM_LAYER_H_
-#define _WAVEFORM_LAYER_H_
+#ifndef SV_WAVEFORM_LAYER_H
+#define SV_WAVEFORM_LAYER_H
 
 #include <QRect>
 
--- a/widgets/ActivityLog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ActivityLog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _ACTIVITY_LOG_H_
-#define _ACTIVITY_LOG_H_
+#ifndef SV_ACTIVITY_LOG_H
+#define SV_ACTIVITY_LOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/AudioDial.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/AudioDial.h	Mon Nov 26 13:52:57 2018 +0000
@@ -12,8 +12,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _AUDIO_DIAL_H_
-#define _AUDIO_DIAL_H_
+#ifndef SV_AUDIO_DIAL_H
+#define SV_AUDIO_DIAL_H
 
 /**
  * A rotary dial widget.
--- a/widgets/ClickableLabel.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ClickableLabel.h	Mon Nov 26 13:52:57 2018 +0000
@@ -12,8 +12,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _CLICKABLE_LABEL_H_
-#define _CLICKABLE_LABEL_H_
+#ifndef SV_CLICKABLE_LABEL_H
+#define SV_CLICKABLE_LABEL_H
 
 #include <QLabel>
 
--- a/widgets/ColourNameDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ColourNameDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _COLOUR_NAME_DIALOG_H_
-#define _COLOUR_NAME_DIALOG_H_
+#ifndef SV_COLOUR_NAME_DIALOG_H
+#define SV_COLOUR_NAME_DIALOG_H
 
 #include <QDialog>
 #include <QColor>
--- a/widgets/CommandHistory.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/CommandHistory.h	Mon Nov 26 13:52:57 2018 +0000
@@ -22,8 +22,8 @@
    distributed under the GNU Lesser General Public License.
 */
 
-#ifndef _MULTI_VIEW_COMMAND_HISTORY_H_
-#define _MULTI_VIEW_COMMAND_HISTORY_H_
+#ifndef SV_MULTI_VIEW_COMMAND_HISTORY_H
+#define SV_MULTI_VIEW_COMMAND_HISTORY_H
 
 #include <QObject>
 #include <QString>
--- a/widgets/IconLoader.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/IconLoader.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _ICON_LOADER_H_
-#define _ICON_LOADER_H_
+#ifndef SV_ICON_LOADER_H
+#define SV_ICON_LOADER_H
 
 #include <QIcon>
 
--- a/widgets/ImageDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ImageDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _IMAGE_DIALOG_H_
-#define _IMAGE_DIALOG_H_
+#ifndef SV_IMAGE_DIALOG_H
+#define SV_IMAGE_DIALOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/InteractiveFileFinder.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/InteractiveFileFinder.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _INTERACTIVE_FILE_FINDER_H_
-#define _INTERACTIVE_FILE_FINDER_H_
+#ifndef SV_INTERACTIVE_FILE_FINDER_H
+#define SV_INTERACTIVE_FILE_FINDER_H
 
 #include "data/fileio/FileFinder.h"
 
--- a/widgets/ItemEditDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ItemEditDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _ITEM_EDIT_DIALOG_H_
-#define _ITEM_EDIT_DIALOG_H_
+#ifndef SV_ITEM_EDIT_DIALOG_H
+#define SV_ITEM_EDIT_DIALOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/KeyReference.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/KeyReference.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _KEY_REFERENCE_H_
-#define _KEY_REFERENCE_H_
+#ifndef SV_KEY_REFERENCE_H
+#define SV_KEY_REFERENCE_H
 
 #include <QObject>
 #include <QString>
--- a/widgets/LabelCounterInputDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/LabelCounterInputDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _LABEL_COUNTER_INPUT_DIALOG_H_
-#define _LABEL_COUNTER_INPUT_DIALOG_H_
+#ifndef SV_LABEL_COUNTER_INPUT_DIALOG_H
+#define SV_LABEL_COUNTER_INPUT_DIALOG_H
 
 #include <QDialog>
 #include "data/model/Labeller.h"
--- a/widgets/LayerTree.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/LayerTree.h	Mon Nov 26 13:52:57 2018 +0000
@@ -14,8 +14,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _LAYER_TREE_H_
-#define _LAYER_TREE_H_
+#ifndef SV_LAYER_TREE_H
+#define SV_LAYER_TREE_H
 
 #include <QAbstractItemModel>
 
--- a/widgets/LayerTreeDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/LayerTreeDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _LAYER_TREE_DIALOG_H_
-#define _LAYER_TREE_DIALOG_H_
+#ifndef SV_LAYER_TREE_DIALOG_H
+#define SV_LAYER_TREE_DIALOG_H
 
 #include <QDialog>
 
--- a/widgets/ListInputDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ListInputDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _LIST_INPUT_DIALOG_H_
-#define _LIST_INPUT_DIALOG_H_
+#ifndef SV_LIST_INPUT_DIALOG_H
+#define SV_LIST_INPUT_DIALOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/MIDIFileImportDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/MIDIFileImportDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -12,8 +12,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _MIDI_FILE_IMPORT_DIALOG_H_
-#define _MIDI_FILE_IMPORT_DIALOG_H_
+#ifndef SV_MIDI_FILE_IMPORT_DIALOG_H
+#define SV_MIDI_FILE_IMPORT_DIALOG_H
 
 #include <QObject>
 
--- a/widgets/NotifyingCheckBox.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/NotifyingCheckBox.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _NOTIFYING_CHECK_BOX_H_
-#define _NOTIFYING_CHECK_BOX_H_
+#ifndef SV_NOTIFYING_CHECK_BOX_H
+#define SV_NOTIFYING_CHECK_BOX_H
 
 #include <QCheckBox>
 
--- a/widgets/NotifyingTabBar.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/NotifyingTabBar.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _NOTIFYING_TAB_BAR_H_
-#define _NOTIFYING_TAB_BAR_H_
+#ifndef SV_NOTIFYING_TAB_BAR_H
+#define SV_NOTIFYING_TAB_BAR_H
 
 #include <QTabBar>
 
--- a/widgets/PluginParameterBox.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/PluginParameterBox.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _PLUGIN_PARAMETER_BOX_H_
-#define _PLUGIN_PARAMETER_BOX_H_
+#ifndef SV_PLUGIN_PARAMETER_BOX_H
+#define SV_PLUGIN_PARAMETER_BOX_H
 
 #include <vamp-hostsdk/PluginBase.h>
 
--- a/widgets/PluginParameterDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/PluginParameterDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _PLUGIN_PARAMETER_DIALOG_H_
-#define _PLUGIN_PARAMETER_DIALOG_H_
+#ifndef SV_PLUGIN_PARAMETER_DIALOG_H
+#define SV_PLUGIN_PARAMETER_DIALOG_H
 
 #include <QDialog>
 
--- a/widgets/ProgressDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/ProgressDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,7 +13,7 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _PROGRESS_DIALOG_H_
+#ifndef SV_PROGRESS_DIALOG_H
 
 #include "base/ProgressReporter.h"
 
--- a/widgets/PropertyStack.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/PropertyStack.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _PROPERTY_STACK_H_
-#define _PROPERTY_STACK_H_
+#ifndef SV_PROPERTY_STACK_H
+#define SV_PROPERTY_STACK_H
 
 #include <QFrame>
 #include <QTabWidget>
--- a/widgets/RangeInputDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/RangeInputDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _RANGE_INPUT_DIALOG_H_
-#define _RANGE_INPUT_DIALOG_H_
+#ifndef SV_RANGE_INPUT_DIALOG_H
+#define SV_RANGE_INPUT_DIALOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/SelectableLabel.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/SelectableLabel.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _SELECTABLE_LABEL_H_
-#define _SELECTABLE_LABEL_H_
+#ifndef SV_SELECTABLE_LABEL_H
+#define SV_SELECTABLE_LABEL_H
 
 #include <QLabel>
 
--- a/widgets/TextAbbrev.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/TextAbbrev.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TEXT_ABBREV_H_
-#define _TEXT_ABBREV_H_
+#ifndef SV_TEXT_ABBREV_H
+#define SV_TEXT_ABBREV_H
 
 #include <QString>
 #include <QStringList>
--- a/widgets/TipDialog.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/TipDialog.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TIP_DIALOG_H_
-#define _TIP_DIALOG_H_
+#ifndef SV_TIP_DIALOG_H
+#define SV_TIP_DIALOG_H
 
 #include <QDialog>
 #include <QString>
--- a/widgets/TransformFinder.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/TransformFinder.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _TRANSFORM_FINDER_H_
-#define _TRANSFORM_FINDER_H_
+#ifndef SV_TRANSFORM_FINDER_H
+#define SV_TRANSFORM_FINDER_H
 
 #include <QDialog>
 
--- a/widgets/WindowShapePreview.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/WindowShapePreview.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _WINDOW_SHAPE_PREVIEW_H_
-#define _WINDOW_SHAPE_PREVIEW_H_
+#ifndef SV_WINDOW_SHAPE_PREVIEW_H
+#define SV_WINDOW_SHAPE_PREVIEW_H
 
 #include <QFrame>
 
--- a/widgets/WindowTypeSelector.h	Mon Nov 26 13:52:27 2018 +0000
+++ b/widgets/WindowTypeSelector.h	Mon Nov 26 13:52:57 2018 +0000
@@ -13,8 +13,8 @@
     COPYING included with this distribution for more information.
 */
 
-#ifndef _WINDOW_TYPE_SELECTOR_H_
-#define _WINDOW_TYPE_SELECTOR_H_
+#ifndef SV_WINDOW_TYPE_SELECTOR_H
+#define SV_WINDOW_TYPE_SELECTOR_H
 
 #include <QFrame>