Code cleanup: get rid of "using namespace"

Bug #1375579 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

According to the Google Style Guide, "using namespace foo" is not a good idea:

http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Namespaces

You may not use a using-directive to make all names from a namespace available.

// Forbidden -- This pollutes the namespace.
using namespace foo;

You may use a using-declaration anywhere in a .cc file, and in functions, methods or classes in .h files.

Related branches

GunChleoc (gunchleoc)
tags: added: cleanups lowhangingfruit
description: updated
SirVer (sirver)
Changed in widelands:
status: New → Confirmed
importance: Undecided → Low
GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → GunChleoc (gunchleoc)
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
GunChleoc (gunchleoc)
Changed in widelands:
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.