summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 18:57:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:36:32 (GMT)
commitcb05f5a908e20006c954ce38755c2e422ecc2388 (patch)
treea793551a5fe279a57d4330119560e8542f745484 /Swift/QtUI/UserSearch
parentcad974b45c0fb9355e68d9728e42c9ae3dbcebc7 (diff)
downloadswift-cb05f5a908e20006c954ce38755c2e422ecc2388.zip
swift-cb05f5a908e20006c954ce38755c2e422ecc2388.tar.bz2
Removed Swift::String.
Diffstat (limited to 'Swift/QtUI/UserSearch')
-rw-r--r--Swift/QtUI/UserSearch/QtUserSearchWindow.cpp2
-rw-r--r--Swift/QtUI/UserSearch/UserSearchModel.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
index ad06654..c6fb004 100644
--- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
+++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp
@@ -209,7 +209,7 @@ void QtUserSearchWindow::show() {
//
//void QtUserSearchWindow::handleOkClicked() {
// JID contact = JID(Q2PSTRING(jid_->text()));
-// String nick = Q2PSTRING(nickName_->text());
+// std::string nick = Q2PSTRING(nickName_->text());
// if (addToRoster_->isChecked()) {
// boost::shared_ptr<UIEvent> event(new AddContactUIEvent(contact, nick));
// eventStream_->send(event);
diff --git a/Swift/QtUI/UserSearch/UserSearchModel.cpp b/Swift/QtUI/UserSearch/UserSearchModel.cpp
index 1187c29..aafd789 100644
--- a/Swift/QtUI/UserSearch/UserSearchModel.cpp
+++ b/Swift/QtUI/UserSearch/UserSearchModel.cpp
@@ -46,12 +46,12 @@ QVariant UserSearchModel::data(UserSearchResult* item, int role) {
QString UserSearchModel::nameLine(UserSearchResult* item) {
QString result;
- const std::map<String, String> fields = item->getFields();
- std::map<String, String>::const_iterator first = fields.find("first");
+ const std::map<std::string, std::string> fields = item->getFields();
+ std::map<std::string, std::string>::const_iterator first = fields.find("first");
if (first != fields.end()) {
result += P2QSTRING((*first).second);
}
- std::map<String, String>::const_iterator last = fields.find("last");
+ std::map<std::string, std::string>::const_iterator last = fields.find("last");
if (last != fields.end()) {
if (!result.isEmpty()) {
result += " ";