Project

General

Profile

Bug #1679 ยป string_list_model_remove_20130208a.cc

Bruce Toll, 02/08/2013 06:47 PM

 
#include <Wt/WServer>
#include <Wt/WStringListModel>

using namespace Wt;

class SmTestApplication : public WApplication
{
public:
SmTestApplication(const WEnvironment& env);

private:
WStringListModel *string_list_model_;
};


SmTestApplication::SmTestApplication(const WEnvironment& env) :
WApplication(env)
{
std::vector<WString> strings;
strings.push_back(WString("test1"));
string_list_model_ = new WStringListModel(strings);
string_list_model_->removeRows(0, 1);
}


WApplication *createApplication(const WEnvironment& env)
{
return new SmTestApplication(env);
}

int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}
    (1-1/1)