Make UiStyle::styleString() and friends static
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 18 Jun 2009 08:21:56 +0000 (10:21 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 6 Aug 2009 18:25:05 +0000 (20:25 +0200)
commite47500c0800e92c59d504f3b62ee3bf715c0207e
tree7f59b513b913a08c7e9526f2065a864835d71eaf
parent76ff3775486d1f813d932adf38a53b45966eb274
Make UiStyle::styleString() and friends static

styleString() actually just converts our internal format codes into a list
of FormatTypes, which are only used as keys for getting a particular format from
a particular style. Hence, styleString() itself can be made static. Amongst other things,
this has the advantage that StyledMessage's lazy styling can be encapsulated properly, and
there is no need to externally ensure that the message has been styled.
src/uisupport/uistyle.cpp
src/uisupport/uistyle.h