From effc648f262bd3bd7b57d4e76db2f768510be55c Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 29 Mar 2005 01:22:42 +0000 Subject: Tweaks to Text controls and text handling. --- src/combobox.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/combobox.cpp') diff --git a/src/combobox.cpp b/src/combobox.cpp index 9f1108e..f16b619 100644 --- a/src/combobox.cpp +++ b/src/combobox.cpp @@ -95,6 +95,14 @@ int ComboBox::AddString(const char *text) } +// ------------------------------------------------------------ +// +int ComboBox::AddString(const std::string& text) +{ + return AddString(text.c_str()); +} + + // ------------------------------------------------------------ // int ComboBox::AddString(const char *text, int index) @@ -103,6 +111,14 @@ int ComboBox::AddString(const char *text, int index) } +// ------------------------------------------------------------ +// +int ComboBox::AddString(const std::string& text, int index) +{ + return AddString(text.c_str(),index); +} + + // ------------------------------------------------------------ // int ComboBox::RemoveString(int index) -- cgit v1.2.3