Bug #14642 » 0002-WStandardItem-use-clone-instead-of-the-hardcoded-WSt.patch
| src/Wt/WStandardItem.C | ||
|---|---|---|
|
for (int i = 0; i < count; ++i) {
|
||
|
Column c;
|
||
|
for (int j = 0; j < rc; ++j) {
|
||
|
c.push_back(std::make_unique<WStandardItem>());
|
||
|
c.push_back(clone());
|
||
|
adoptChild(j, column + i, c[j].get());
|
||
|
}
|
||
|
columns_->insert(columns_->begin() + column + i, std::move(c));
|
||
| ... | ... | |
|
for (unsigned i = 0; i < cc; ++i) {
|
||
|
Column& c = (*columns_)[i];
|
||
|
for (int j = 0; j < count; ++j) {
|
||
|
c.insert(c.begin() + row + j, std::make_unique<WStandardItem>());
|
||
|
c.insert(c.begin() + row + j, clone());
|
||
|
adoptChild(row + j, i, c[row + j].get());
|
||
|
if (model_) {
|
||