summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-12 14:21:41 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-12 14:21:41 -0500
commit2c9bbe2736e2c45a7ee66448c5aa5f80549adc53 (patch)
tree784b3d027e721c7fed88ed637bda0317a898d266 /src/nodedef.h
parentcf8213ea827f38ae5d4b8ef16c396545e3e59657 (diff)
downloadminetest-2c9bbe2736e2c45a7ee66448c5aa5f80549adc53.tar.gz
minetest-2c9bbe2736e2c45a7ee66448c5aa5f80549adc53.tar.bz2
minetest-2c9bbe2736e2c45a7ee66448c5aa5f80549adc53.zip
NodeResolver: Fix some comments and use const references for params
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 978b9b7cd..dd76717e1 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -337,7 +337,7 @@ public:
node name resolution.
@return Status of node resolution request.
*/
- int addNode(std::string n_wanted, std::string n_alt,
+ int addNode(const std::string &n_wanted, const std::string &n_alt,
content_t c_fallback, content_t *content);
/**
@@ -358,11 +358,12 @@ public:
@return Status of node resolution request.
*/
- int addNodeList(const char *nodename, std::vector<content_t> *content_vec);
+ int addNodeList(const std::string &nodename,
+ std::vector<content_t> *content_vec);
/**
- Removes all pending requests from the resolution queue to be satisfied
- to content.
+ Removes all pending requests from the resolution queue with the output
+ address of 'content'.
@param content Location of the content ID for the request being
cancelled.
@@ -371,8 +372,8 @@ public:
bool cancelNode(content_t *content);
/**
- Removes all pending requests from the resolution queue to be satisfied
- to content_vec.
+ Removes all pending requests from the resolution queue with the output
+ address of 'content_vec'.
@param content_vec Location of the content ID vector for requests being
cancelled.