[Bf-blender-cvs] [6e987dc] depsgraph_refactor: Warnings fix: Mark identifier() methods as const
Joshua Leung
noreply at git.blender.org
Wed Dec 17 04:41:16 CET 2014
Commit: 6e987dcf5102680793966be925e6e07315d0fc3d
Author: Joshua Leung
Date: Tue Dec 16 15:29:03 2014 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB6e987dcf5102680793966be925e6e07315d0fc3d
Warnings fix: Mark identifier() methods as const
===================================================================
M source/blender/depsgraph/intern/depsnode.h
M source/blender/depsgraph/intern/depsnode_operation.cpp
M source/blender/depsgraph/intern/depsnode_operation.h
===================================================================
diff --git a/source/blender/depsgraph/intern/depsnode.h b/source/blender/depsgraph/intern/depsnode.h
index e80541c..961a1cf 100644
--- a/source/blender/depsgraph/intern/depsnode.h
+++ b/source/blender/depsgraph/intern/depsnode.h
@@ -68,7 +68,7 @@ public:
DepsNode();
virtual ~DepsNode();
- virtual string identifier();
+ virtual string identifier() const;
virtual void init(const ID *id, const string &subdata) {}
virtual void copy(DepsgraphCopyContext *dcc, const DepsNode *src) {}
diff --git a/source/blender/depsgraph/intern/depsnode_operation.cpp b/source/blender/depsgraph/intern/depsnode_operation.cpp
index 9d06f8e..0ffc1bc 100644
--- a/source/blender/depsgraph/intern/depsnode_operation.cpp
+++ b/source/blender/depsgraph/intern/depsnode_operation.cpp
@@ -62,7 +62,7 @@ OperationDepsNode::~OperationDepsNode()
DEPSNODE_RELATIONS_ITER_END;
}
-string OperationDepsNode::identifier()
+string OperationDepsNode::identifier() const
{
/* identifiers for operations */
const char *DEG_OPNAMES[] = {
diff --git a/source/blender/depsgraph/intern/depsnode_operation.h b/source/blender/depsgraph/intern/depsnode_operation.h
index 63ff10f..80bab17 100644
--- a/source/blender/depsgraph/intern/depsnode_operation.h
+++ b/source/blender/depsgraph/intern/depsnode_operation.h
@@ -67,7 +67,7 @@ struct OperationDepsNode : public DepsNode {
OperationDepsNode();
~OperationDepsNode();
- string identifier();
+ string identifier() const;
void tag_update(Depsgraph *graph);
More information about the Bf-blender-cvs
mailing list