You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/alembic/files/alembic-1.7.11-0004-Fix-a-c...

28 lines
1.0 KiB

From d1895084e41970c8f91e9357fcb739ac29c47109 Mon Sep 17 00:00:00 2001
From: Bernd Waibel <waebbl@gmail.com>
Date: Sat, 15 Jun 2019 16:19:30 +0200
Subject: [PATCH 4/5] WriteGeo.cpp: Fix a compile issue, where an invalid
conversion from char* to const char* took place.
Signed-off-by: Bernd Waibel <waebbl@gmail.com>
---
prman/Procedural/WriteGeo.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prman/Procedural/WriteGeo.cpp b/prman/Procedural/WriteGeo.cpp
index 95b4867..5ad0b71 100644
--- a/prman/Procedural/WriteGeo.cpp
+++ b/prman/Procedural/WriteGeo.cpp
@@ -898,7 +898,7 @@ void ProcessCurves( ICurves &curves, ProcArgs &args )
void WriteIdentifier( const ObjectHeader &ohead )
{
std::string name = ohead.getFullName();
- char* nameArray[] = { const_cast<char*>( name.c_str() ), RI_NULL };
+ const char* nameArray[] = { const_cast<char*>( name.c_str() ), RI_NULL };
RiAttribute(const_cast<char*>( "identifier" ), const_cast<char*>( "name" ),
nameArray, RI_NULL );
--
2.22.0