Home
Phabricator
Search
Log In
Paste
P391
Masterwork From Distant Lands
Active
Public
Actions
Authored by
davidedmundson
on May 23 2019, 11:19 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
From 737a4f30be9179253dd064494eb2fa25144c8778 Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Thu, 23 May 2019 23:35:13 +0100
Subject: [PATCH] Correctly terminate attributeNames
---
src/scenegraph/LineChartMaterial.cpp | 2 +-
src/scenegraph/PieChartMaterial.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scenegraph/LineChartMaterial.cpp b/src/scenegraph/LineChartMaterial.cpp
index 2ee8264..721a0ac 100644
--- a/src/scenegraph/LineChartMaterial.cpp
+++ b/src/scenegraph/LineChartMaterial.cpp
@@ -72,7 +72,7 @@ LineChartShader::~LineChartShader()
const char *const *LineChartShader::attributeNames() const
{
- static char const *const names[] = { "in_vertex", "in_uv", "\0" };
+ static char const *const names[] = { "in_vertex", "in_uv", nullptr };
return names;
}
diff --git a/src/scenegraph/PieChartMaterial.cpp b/src/scenegraph/PieChartMaterial.cpp
index ad7a19b..6af2094 100644
--- a/src/scenegraph/PieChartMaterial.cpp
+++ b/src/scenegraph/PieChartMaterial.cpp
@@ -72,7 +72,7 @@ PieChartShader::~PieChartShader()
const char *const *PieChartShader::attributeNames() const
{
- static char const *const names[] = { "in_vertex", "in_uv", "\0" };
+ static char const *const names[] = { "in_vertex", "in_uv", nullptr };
return names;
}
--
2.21.0
davidedmundson
edited the content of this paste.
(Show Details)
May 23 2019, 11:19 PM
davidedmundson
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment