summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-26 00:21:49 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-08-26 00:57:58 (GMT)
commit6bb24934a6cdb3212f35c078087ec2004549b517 (patch)
tree0cfc86f57f7ae43ed20c8f0d916d8bf36c721382
parent39d2b3d5e31425813c1ac0e159325bc70f397665 (diff)
Use type const char[] instead of const char* for const string "variable"s
-rw-r--r--src/plugins/render/annotate/SceneGraphicsTypes.cpp8
-rw-r--r--src/plugins/render/annotate/SceneGraphicsTypes.h10
2 files changed, 10 insertions, 8 deletions
diff --git a/src/plugins/render/annotate/SceneGraphicsTypes.cpp b/src/plugins/render/annotate/SceneGraphicsTypes.cpp
index 5511722..8c6901c 100644
--- a/src/plugins/render/annotate/SceneGraphicsTypes.cpp
+++ b/src/plugins/render/annotate/SceneGraphicsTypes.cpp
@@ -17,10 +17,10 @@ namespace Marble
namespace SceneGraphicsTypes
{
- const char *SceneGraphicAreaAnnotation = "SceneGraphicAreaAnnotation";
- const char *SceneGraphicGroundOverlay = "SceneGraphicGroundOverlay";
- const char *SceneGraphicTextAnnotation = "SceneGraphicTextAnnotation";
- const char *SceneGraphicPolylineAnnotation = "SceneGraphicPolylineAnnotation";
+const char SceneGraphicAreaAnnotation[] = "SceneGraphicAreaAnnotation";
+const char SceneGraphicGroundOverlay[] = "SceneGraphicGroundOverlay";
+const char SceneGraphicTextAnnotation[] = "SceneGraphicTextAnnotation";
+const char SceneGraphicPolylineAnnotation[] = "SceneGraphicPolylineAnnotation";
}
}
diff --git a/src/plugins/render/annotate/SceneGraphicsTypes.h b/src/plugins/render/annotate/SceneGraphicsTypes.h
index 2ec6fa4..18acbd2 100644
--- a/src/plugins/render/annotate/SceneGraphicsTypes.h
+++ b/src/plugins/render/annotate/SceneGraphicsTypes.h
@@ -21,10 +21,12 @@ namespace Marble
namespace SceneGraphicsTypes
{
- extern const char *SceneGraphicAreaAnnotation;
- extern const char *SceneGraphicGroundOverlay;
- extern const char *SceneGraphicTextAnnotation;
- extern const char *SceneGraphicPolylineAnnotation;
+
+extern const char SceneGraphicAreaAnnotation[];
+extern const char SceneGraphicGroundOverlay[];
+extern const char SceneGraphicTextAnnotation[];
+extern const char SceneGraphicPolylineAnnotation[];
+
}
}