summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
commit9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch)
tree798117abd4dc7e610997d59d530a96ddc1509f53 /src/commandline.cpp
parent4429cb14e9e187edef27aba692a4266733f79c17 (diff)
downloadmv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 95d336d34..110aa60f5 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -204,7 +204,7 @@ void parseOptions(const int argc, char *const argv[])
options.serverName = optarg;
break;
case 'p':
- options.serverPort = static_cast<uint16_t>(atoi(optarg));
+ options.serverPort = CAST_U16(atoi(optarg));
break;
case 'u':
options.skipUpdate = true;
@@ -242,7 +242,7 @@ void parseOptions(const int argc, char *const argv[])
options.test = std::string(optarg);
break;
case 'r':
- options.renderer = static_cast<int>(atoi(optarg));
+ options.renderer = CAST_S32(atoi(optarg));
break;
case 'y':
options.serverType = optarg;