summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:48:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-23 12:48:13 +0200
commit255e7e5664df0a54100b0157e389df4883a80c85 (patch)
treeddc31d645102415dc5dd5d428f8131d921002e2c /src
parentrekonq 0.2.71 (diff)
downloadrekonq-255e7e5664df0a54100b0157e389df4883a80c85.tar.xz
Krazy fixes for 0.2.71
Diffstat (limited to 'src')
-rw-r--r--src/homepage.cpp9
-rw-r--r--src/mainview.cpp2
-rw-r--r--src/previewimage.cpp2
3 files changed, 6 insertions, 7 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 965bb749..27d613ce 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -112,7 +112,7 @@ QString HomePage::fillFavorites()
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();
- QString speed="<div class=\"favorites\">";
+ QString speed = "<div class=\"favorites\">";
for(int i=0; i<8; ++i)
{
speed += "<div class=\"thumbnail\">";
@@ -151,7 +151,7 @@ QString HomePage::lastVisitedSites()
QString HomePage::homePageMenu(KUrl currentUrl)
{
- QString menu = "";
+ QString menu;
KIconLoader *loader = KIconLoader::global();
@@ -245,7 +245,7 @@ QString HomePage::createBookItem(const KBookmark &bookmark)
{
if (bookmark.isGroup())
{
- QString result = QString("");
+ QString result;
KBookmarkGroup group = bookmark.toGroup();
KBookmark bm = group.first();
result += "<h3>" + bookmark.text() + "</h3>";
@@ -264,8 +264,7 @@ QString HomePage::createBookItem(const KBookmark &bookmark)
return QString("<hr />");
}
- QString books = " ";
- books += "<a href=\"" + bookmark.url().prettyUrl() + "\">" + bookmark.text() + "</a><br />";
+ QString books = "<a href=\"" + bookmark.url().prettyUrl() + "\">" + bookmark.text() + "</a><br />";
return books;
}
diff --git a/src/mainview.cpp b/src/mainview.cpp
index de35715a..6d282e0c 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -595,4 +595,4 @@ void MainView::resizeEvent(QResizeEvent *event)
{
updateTabBar();
KTabWidget::resizeEvent(event);
-} \ No newline at end of file
+}
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index f727db49..79af246d 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -334,7 +334,7 @@ void PreviewImage::setUrlFromAction()
// update url (for added thumbs)
QStringList urls = ReKonfig::previewUrls();
- // stripTrailingSlash to be sure to get the same string for same adress
+ // stripTrailingSlash to be sure to get the same string for same address
urls.replace(m_index, m_url.toString(QUrl::StripTrailingSlash));
names.replace(m_index, m_title);