Package: inventor / 2.1.5-10-21

const-correctness.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix some const correctness
Author: Steve M. Robbins <smr@debian.org>

--- inventor-2.1.5-10.orig/lib/interaction/src/nodekits/SoInteractionKit.c++
+++ inventor-2.1.5-10/lib/interaction/src/nodekits/SoInteractionKit.c++
@@ -854,8 +854,8 @@ SoInteractionKit::setAnySurrogatePath( c
 	    // (as in "childList[0].appearance")
 	    // If so, get the string up to whichever came first.
 	    // This will be the 'intermediary' we look for.
-	    char *dotPtr   = strchr( partName.getString(), '.' );
-	    char *brackPtr = strchr( partName.getString(), '[' );
+	    const char *dotPtr   = strchr( partName.getString(), '.' );
+	    const char *brackPtr = strchr( partName.getString(), '[' );
 
 	    if ( dotPtr != NULL || brackPtr != NULL ) {
 		char *nameCopy = strdup( partName.getString() );
--- inventor-2.1.5-10.orig/lib/database/src/so/SoInput.c++
+++ inventor-2.1.5-10/lib/database/src/so/SoInput.c++
@@ -2810,7 +2810,7 @@ SoInput::addReference(const SbName &name
 
     if (addToGlobalDict) {
 	// Look for the first '+':
-	char *firstPlus = strchr(n, '+');
+	const char *firstPlus = strchr(n, '+');
 
 	if (firstPlus == NULL) {
 	    base->setName(name);