make the styles' doJustify methods stop returning the string length as this is no longer needed with the BFont class
Dana Jansens danakj@orodu.net
4 files changed,
12 insertions(+),
16 deletions(-)
M
src/Screen.hh
→
src/Screen.hh
@@ -71,8 +71,8 @@ BFont *font;
TextJustify justify; - int doJustify(const std::string &text, int &start_pos, - unsigned int max_length, unsigned int modifier) const; + void doJustify(const std::string &text, int &start_pos, + unsigned int max_length, unsigned int modifier) const; }; struct ToolbarStyle {@@ -83,8 +83,8 @@ BFont *font;
TextJustify justify; - int doJustify(const std::string &text, int &start_pos, - unsigned int max_length, unsigned int modifier) const; + void doJustify(const std::string &text, int &start_pos, + unsigned int max_length, unsigned int modifier) const; }; struct MenuStyle {
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -1172,9 +1172,9 @@ getScreen()->getSlit()->reposition();
} -int ToolbarStyle::doJustify(const std::string &text, int &start_pos, - unsigned int max_length, - unsigned int modifier) const { +void ToolbarStyle::doJustify(const std::string &text, int &start_pos, + unsigned int max_length, + unsigned int modifier) const { size_t text_len = text.size(); unsigned int length;@@ -1195,6 +1195,4 @@ case LeftJustify:
default: break; } - - return text_len; }
M
src/Window.cc
→
src/Window.cc
@@ -3542,9 +3542,9 @@ frame.changing.setPos(frame.changing.x() + dx, frame.changing.y() + dy);
} -int WindowStyle::doJustify(const std::string &text, int &start_pos, - unsigned int max_length, - unsigned int modifier) const { +void WindowStyle::doJustify(const std::string &text, int &start_pos, + unsigned int max_length, + unsigned int modifier) const { size_t text_len = text.size(); unsigned int length;@@ -3565,8 +3565,6 @@ case LeftJustify:
default: break; } - - return text_len; }