aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2012-11-28 20:44:03 +0200
committerOrgad Shaneh <[email protected]>2012-11-28 20:20:46 +0100
commita44aa55502b1d9f548692e49ab7cea13d341c8ca (patch)
tree77f9fbfd583551839c4448c1b66de7c47dd7afc3 /src/plugins/cpaster
parent3747e941ad79f64e28c78c83a840783eb3edfd6f (diff)
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r--src/plugins/cpaster/cpasterplugin.cpp4
-rw-r--r--src/plugins/cpaster/pastebindotcaprotocol.cpp2
-rw-r--r--src/plugins/cpaster/pastebindotcomprotocol.cpp2
-rw-r--r--src/plugins/cpaster/pasteselectdialog.cpp2
-rw-r--r--src/plugins/cpaster/pasteview.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index 72350319bcb..2594c52a9ac 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -142,7 +142,7 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *errorMe
new FileShareProtocol
};
const int count = sizeof(protos) / sizeof(Protocol *);
- for(int i = 0; i < count; ++i) {
+ for (int i = 0; i < count; ++i) {
connect(protos[i], SIGNAL(pasteDone(QString)), this, SLOT(finishPost(QString)));
connect(protos[i], SIGNAL(fetchDone(QString,QString,bool)),
this, SLOT(finishFetch(QString,QString,bool)));
@@ -202,7 +202,7 @@ void CodepasterPlugin::extensionsInitialized()
ExtensionSystem::IPlugin::ShutdownFlag CodepasterPlugin::aboutToShutdown()
{
// Delete temporary, fetched files
- foreach(const QString &fetchedSnippet, m_fetchedSnippets) {
+ foreach (const QString &fetchedSnippet, m_fetchedSnippets) {
QFile file(fetchedSnippet);
if (file.exists())
file.remove();
diff --git a/src/plugins/cpaster/pastebindotcaprotocol.cpp b/src/plugins/cpaster/pastebindotcaprotocol.cpp
index e036c0b39a6..b4ae5920ef9 100644
--- a/src/plugins/cpaster/pastebindotcaprotocol.cpp
+++ b/src/plugins/cpaster/pastebindotcaprotocol.cpp
@@ -193,7 +193,7 @@ static inline QStringList parseLists(QIODevice *io)
QXmlStreamReader reader(data);
State state = OutsideRecentLink;
while (!reader.atEnd()) {
- switch(reader.readNext()) {
+ switch (reader.readNext()) {
case QXmlStreamReader::StartElement:
// Inside a <div> of an entry: Anchor or description
if (state == InsideRecentLink && reader.name() == anchorElement) { // Anchor
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp
index dade4e201b3..1d5d77b9372 100644
--- a/src/plugins/cpaster/pastebindotcomprotocol.cpp
+++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp
@@ -324,7 +324,7 @@ static inline QStringList parseLists(QIODevice *io)
QString age;
while (!reader.atEnd()) {
- switch(reader.readNext()) {
+ switch (reader.readNext()) {
case QXmlStreamReader::StartElement:
state = nextOpeningState(state, reader);
switch (state) {
diff --git a/src/plugins/cpaster/pasteselectdialog.cpp b/src/plugins/cpaster/pasteselectdialog.cpp
index d6774d71b3a..aee715fd709 100644
--- a/src/plugins/cpaster/pasteselectdialog.cpp
+++ b/src/plugins/cpaster/pasteselectdialog.cpp
@@ -44,7 +44,7 @@ PasteSelectDialog::PasteSelectDialog(const QList<Protocol*> &protocols,
m_protocols(protocols)
{
m_ui.setupUi(this);
- foreach(const Protocol *protocol, protocols) {
+ foreach (const Protocol *protocol, protocols) {
m_ui.protocolBox->addItem(protocol->name());
connect(protocol, SIGNAL(listDone(QString,QStringList)),
this, SLOT(listDone(QString,QStringList)));
diff --git a/src/plugins/cpaster/pasteview.cpp b/src/plugins/cpaster/pasteview.cpp
index e346e94caa4..160d35de87b 100644
--- a/src/plugins/cpaster/pasteview.cpp
+++ b/src/plugins/cpaster/pasteview.cpp
@@ -59,7 +59,7 @@ PasteView::PasteView(const QList<Protocol *> protocols,
m_ui.buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Paste"));
connect(m_ui.uiPatchList, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(contentChanged()));
- foreach(const Protocol *p, protocols)
+ foreach (const Protocol *p, protocols)
m_ui.protocolBox->addItem(p->name());
connect(m_ui.protocolBox, SIGNAL(currentIndexChanged(int)),
this, SLOT(protocolChanged(int)));