Remove camelCase or other standards for function names

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

Bug Description

function names in widelands are lowercase and separated by underscores: this_is_a_function(). All other uses should be renamed. A codecheck rule would be nice as well, but it is harder to write.

Related branches

SirVer (sirver)
tags: added: cleanups lowhangingfruit
Changed in widelands:
status: New → Confirmed
importance: Undecided → Low
GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
assignee: nobody → GunChleoc (gunchleoc)
Revision history for this message
GunChleoc (gunchleoc) wrote :

I have a function nam that I don't know what to do with, because I have no idea what it means.

Mix_Chunk * RWopsify_MixLoadWAV(FileRead &); in sound_handler.h

It doesn't seem to be used either, can I delete it?

Revision history for this message
SirVer (sirver) wrote :

> It doesn't seem to be used either, can I delete it?

yes.

this function is (was) used to convert a FileRead into a SDL RWops structure, basically an adapter function.

Revision history for this message
GunChleoc (gunchleoc) wrote :

I have broken 2 tests in ship_transportation.wmf with commit http://bazaar.launchpad.net/~widelands-dev/widelands/bug-1343299/revision/7185, and I can't find the bug.

Revision history for this message
SirVer (sirver) wrote :

You changed void RealFSImpl::rename() to recursively call itself.

 There was already a rename() method defined there, but you also renamed void RealFSImpl::Rename() to the same name, now the compiler prefers to call the class method.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks, that fixed it.

GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
milestone: none → build19-rc1
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.