diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-12-05 08:52:18 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-12-05 08:52:18 +0100 |
commit | 6e01d3dca6899bc97646af1fa49ad4256f08b978 (patch) | |
tree | cfefe379f7652ea56ba7fca6a63553a646b17394 /cpp | |
parent | Include Metrics.h from main IceStorm or Glacier2 header file. (diff) | |
download | ice-6e01d3dca6899bc97646af1fa49ad4256f08b978.tar.bz2 ice-6e01d3dca6899bc97646af1fa49ad4256f08b978.tar.xz ice-6e01d3dca6899bc97646af1fa49ad4256f08b978.zip |
Fixed casts in WinRT hello demo
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/demo/Ice/winrt/hello/MainPage.xaml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/demo/Ice/winrt/hello/MainPage.xaml.cpp b/cpp/demo/Ice/winrt/hello/MainPage.xaml.cpp index da01c2502eb..f12964bc9e8 100644 --- a/cpp/demo/Ice/winrt/hello/MainPage.xaml.cpp +++ b/cpp/demo/Ice/winrt/hello/MainPage.xaml.cpp @@ -99,7 +99,7 @@ hello::MainPage::proxy() if(timeout->Value > 0) { - prx = prx->ice_timeout((int)(timeout->Value * 1000)); + prx = prx->ice_timeout(static_cast<int>(timeout->Value * 1000)); } return Demo::HelloPrx::uncheckedCast(prx); } @@ -172,7 +172,7 @@ hello::MainPage::hello_Click(Platform::Object^ sender, Windows::UI::Xaml::Routed else { print("Queued hello request."); - prx->sayHello((int)(delay->Value * 1000)); + prx->sayHello(static_cast<int>(delay->Value * 1000)); flush->IsEnabled = true; } } |