From 0b373909f1ad987e38b9c07f799f48c3c0b0c3fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Feb 2013 03:35:44 +0300 Subject: Fix compilation issues. --- src/gui/widgets/scrollarea.cpp | 2 ++ src/net/eathena/network.cpp | 4 ++-- src/net/tmwa/network.cpp | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index e865839ab..b7073372c 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -956,6 +956,8 @@ gcn::Rectangle ScrollArea::getHorizontalMarkerDimension() const int w3 = content->getWidth(); if (w3) length = (width * getChildrenArea().width) / w3; + else + length = width; } else { diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index 419459e35..b16d36158 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -108,9 +108,9 @@ short packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -static constexpr const int packet_lengths_size +static const int packet_lengths_size = static_cast(sizeof(packet_lengths) / sizeof (short)); -static constexpr const int messagesSize = 0xffff; +static const int messagesSize = 0xffff; Network *Network::mInstance = nullptr; Network::Network() : diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 52cd5cf62..40106ebfa 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -86,9 +86,9 @@ short packet_lengths[] = -1, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -static constexpr const int packet_lengths_size +static const int packet_lengths_size = static_cast(sizeof(packet_lengths) / sizeof (short)); -static constexpr const int messagesSize = 0xffff; +static const int messagesSize = 0xffff; Network *Network::mInstance = nullptr; Network::Network() : -- cgit v1.2.3-70-g09d2