From be2f47223c17c399e05436a34ba4140f2fc44fc9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 4 Jul 2002 21:33:27 +0000 Subject: make the styles' doJustify methods stop returning the string length as this is no longer needed with the BFont class --- src/Toolbar.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/Toolbar.cc') diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 0018e43f..f6ff130a 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -1172,9 +1172,9 @@ void Toolbarmenu::Placementmenu::itemSelected(int button, unsigned int index) { } -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 @@ int ToolbarStyle::doJustify(const std::string &text, int &start_pos, default: break; } - - return text_len; } -- cgit v1.2.3