From 453991a928e26d5ab1f379264ff1af07fb53fd21 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 19 Feb 2005 19:14:52 +0000 Subject: [PATCH] cleanup --- stepmania/src/OptionIcon.cpp | 4 +++- stepmania/src/OptionIcon.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/OptionIcon.cpp b/stepmania/src/OptionIcon.cpp index 9d457c6c5c..90909a0b77 100644 --- a/stepmania/src/OptionIcon.cpp +++ b/stepmania/src/OptionIcon.cpp @@ -28,8 +28,10 @@ OptionIcon::OptionIcon() this->AddChild( &m_text ); } -void OptionIcon::Load( PlayerNumber pn, CString sText, bool bHeader ) +void OptionIcon::Load( PlayerNumber pn, const CString &_sText, bool bHeader ) { + CString sText = _sText; + static const CString sStopWords[] = { "1X", diff --git a/stepmania/src/OptionIcon.h b/stepmania/src/OptionIcon.h index b0fffafc7c..6ff7f5b758 100644 --- a/stepmania/src/OptionIcon.h +++ b/stepmania/src/OptionIcon.h @@ -14,7 +14,7 @@ class OptionIcon : public ActorFrame public: OptionIcon(); - void Load( PlayerNumber pn, CString sText, bool bHeader = false ); + void Load( PlayerNumber pn, const CString &sText, bool bHeader = false ); void DrawPrimitives(); protected: