summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-08-30 10:37:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-30 10:38:00 (GMT)
commit7ddd43183dadba9c42094540f3371dd38054bc12 (patch)
tree7f048ea2e1a75569eb5472c238389acfc768995e /Source/cmServerProtocol.cxx
parent5cac887297e58efe9553d7aa2bca9139f84bf094 (diff)
parent190e3825d44d4f846d37e1ec7372f5829a5b6b3e (diff)
downloadCMake-7ddd43183dadba9c42094540f3371dd38054bc12.zip
CMake-7ddd43183dadba9c42094540f3371dd38054bc12.tar.gz
CMake-7ddd43183dadba9c42094540f3371dd38054bc12.tar.bz2
Merge topic 'cstyle-casts'
190e3825 Replace C-style casts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1176
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index 0b50deb..2bcfefd 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -742,7 +742,7 @@ static Json::Value DumpBacktrace(const cmListFileBacktrace& backtrace)
Json::Value entry = Json::objectValue;
entry[kPATH_KEY] = backtraceCopy.Top().FilePath;
if (backtraceCopy.Top().Line) {
- entry[kLINE_NUMBER_KEY] = (int)backtraceCopy.Top().Line;
+ entry[kLINE_NUMBER_KEY] = static_cast<int>(backtraceCopy.Top().Line);
}
if (!backtraceCopy.Top().Name.empty()) {
entry[kNAME_KEY] = backtraceCopy.Top().Name;