diff options
author | Jonathan Thomas <echidnaman@kubuntu.org> | 2010-05-27 10:41:57 -0400 |
---|---|---|
committer | Jonathan Thomas <echidnaman@kubuntu.org> | 2010-05-27 10:41:57 -0400 |
commit | 3e1ea4e6b0b09c8c2ccbfdbabd50c5069c029707 (patch) | |
tree | 1d972906b73861ec3e7b455c616169b60953513a /src/bookmarks/bookmarkcontextmenu.cpp | |
parent | Merge commit 'refs/merge-requests/2285' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-3e1ea4e6b0b09c8c2ccbfdbabd50c5069c029707.tar.xz |
Encapsulate single characters in single quotes, since passing a char to QString is more efficient than passing a one-character string.
Diffstat (limited to 'src/bookmarks/bookmarkcontextmenu.cpp')
-rw-r--r-- | src/bookmarks/bookmarkcontextmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bookmarks/bookmarkcontextmenu.cpp b/src/bookmarks/bookmarkcontextmenu.cpp index c96fa7bf..78d64aa5 100644 --- a/src/bookmarks/bookmarkcontextmenu.cpp +++ b/src/bookmarks/bookmarkcontextmenu.cpp @@ -234,10 +234,10 @@ void BookmarkContextMenu::deleteBookmark() void BookmarkContextMenu::editBookmark() { KBookmark selected = bookmark(); - selected.setFullText(selected.text().replace("&&", "&")); + selected.setFullText(selected.text().replace("&&", '&')); KBookmarkDialog *dialog = owner()->bookmarkDialog(manager(), QApplication::activeWindow()); dialog->editBookmark(selected); - selected.setFullText(selected.text().replace("&", "&&")); + selected.setFullText(selected.text().replace('&', "&&")); delete dialog; } @@ -319,7 +319,7 @@ void BookmarkContextMenu::bookmarkCurrentPage() if (selected.isGroup()) parent = selected.toGroup(); - KBookmark newBk = parent.addBookmark(owner()->currentTitle().replace("&", "&&"), KUrl(owner()->currentUrl()), "text-html"); + KBookmark newBk = parent.addBookmark(owner()->currentTitle().replace('&', "&&"), KUrl(owner()->currentUrl()), "text-html"); parent.moveBookmark(newBk, selected.parentGroup().previous(selected)); } |