D25199: Fix some compiler warnings

Christian Ehrlicher <[email protected]>
Newsgroups gmane.comp.kde.devel.games
Message-ID <[email protected]>
chehrlic added inline comments.

INLINE COMMENTS

> gameautomaton.cpp:2200
>      stream >> countryName >> nbArmies;
> -    m_game->theWorld()->countryNamed(countryName)->decrNbArmies(nbArmies);
> +    m_game->theWorld()->countryNamed(countryName)->decrNbArmies(nbArmies); //fallthrough
>    case StartLocalCurrentAI:

better use Q_FALLTHROUGH()

> goal.h:73
> +  /** Assignment operator */
> +  Goal& operator=( const Goal& other ) = default;
> +  

Custom copy ctor but default operator=() ? Doesn't look correct.

> onu.cpp:781
>    if (m_font.family == font.family()
> -      && m_font.size == font.pointSize()
> +      && m_font.size == (uint)font.pointSize()
>        && m_font.weight == (QFont::Weight)font.weight()

later pointSize() (int) is assigned to m_font.size - so why not change m_font.size to be an int?

REPOSITORY
  R413 KsirK

REVISION DETAIL
  https://phabricator.kde.org/D25199

To: yurchor, #kde_games
Cc: chehrlic, kde-games-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.