diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-08-30 10:37:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-08-30 10:38:00 (GMT) |
commit | 7ddd43183dadba9c42094540f3371dd38054bc12 (patch) | |
tree | 7f048ea2e1a75569eb5472c238389acfc768995e /Source/CursesDialog | |
parent | 5cac887297e58efe9553d7aa2bca9139f84bf094 (diff) | |
parent | 190e3825d44d4f846d37e1ec7372f5829a5b6b3e (diff) | |
download | CMake-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/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 6bcc5bd..f79e72a 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -529,7 +529,7 @@ void cmCursesMainForm::UpdateProgress(const char* msg, float prog, void* vp) char tmp[1024]; const char* cmsg = tmp; if (prog >= 0) { - sprintf(tmp, "%s %i%%", msg, (int)(100 * prog)); + sprintf(tmp, "%s %i%%", msg, static_cast<int>(100 * prog)); } else { cmsg = msg; } |