URL:
  <http://gna.org/patch/?4939>

                 Summary: Use const for more sorts of requirement checks
                 Project: Freeciv
            Submitted by: persia
            Submitted on: Sun 13 Jul 2014 07:18:09 AM JST
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: persia
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0

    _______________________________________________________

Details:

Whlie working on patch #4885, I noticed a number of cases where I'd really
rather be passing a const value to check a requirement, or whether something
could happen.  The attached patch adds the const keyword in more places where
the function in question neither intends nor needs to modify the passed
object.

Also, the workarounds to not pass a const value in daieffects.c introduced in
patch #4822 have been removed.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 13 Jul 2014 07:18:09 AM JST  Name:
use-const-for-more-sorts-of-requirement-checks.patch  Size: 8kB   By: persia

<http://gna.org/patch/download.php?file_id=21384>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4939>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to