summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-26 22:40:33 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-26 22:40:33 +0000
commita5fafaa249e3cd45b6c64592991ab1f0e0247e5f (patch)
tree62d118eec6c9406d2484ae1735d745dd55eb3c37 /src/util.cc
parent93096af59d8235235c0caed929b6f72dcf09cdc9 (diff)
Comments / tidying up.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/util.cc b/src/util.cc
index 767c1490..e53556e4 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -156,33 +156,33 @@ dcp::content_kind_to_string (ContentKind kind)
/** Convert a string from a &lt;ContentKind&gt; node to a libdcp ContentKind.
* Reasonably tolerant about varying case.
- * @param type Content kind string.
+ * @param kind Content kind string.
* @return libdcp ContentKind.
*/
dcp::ContentKind
-dcp::content_kind_from_string (string type)
+dcp::content_kind_from_string (string kind)
{
- transform (type.begin(), type.end(), type.begin(), ::tolower);
+ transform (kind.begin(), kind.end(), kind.begin(), ::tolower);
- if (type == "feature") {
+ if (kind == "feature") {
return FEATURE;
- } else if (type == "short") {
+ } else if (kind == "short") {
return SHORT;
- } else if (type == "trailer") {
+ } else if (kind == "trailer") {
return TRAILER;
- } else if (type == "test") {
+ } else if (kind == "test") {
return TEST;
- } else if (type == "transitional") {
+ } else if (kind == "transitional") {
return TRANSITIONAL;
- } else if (type == "rating") {
+ } else if (kind == "rating") {
return RATING;
- } else if (type == "teaser") {
+ } else if (kind == "teaser") {
return TEASER;
- } else if (type == "policy") {
+ } else if (kind == "policy") {
return POLICY;
- } else if (type == "psa") {
+ } else if (kind == "psa") {
return PUBLIC_SERVICE_ANNOUNCEMENT;
- } else if (type == "advertisement") {
+ } else if (kind == "advertisement") {
return ADVERTISEMENT;
}