[anjuta] Fix warning misleading-indentation
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Fix warning misleading-indentation
- Date: Sat, 24 Jun 2017 13:13:22 +0000 (UTC)
commit 71d43f125c22c0bdd81b78f3fda05158faecd22f
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sun Jun 18 19:54:30 2017 +0200
Fix warning misleading-indentation
libanjuta/anjuta-profile.c | 2 +-
plugins/debug-manager/data_buffer.c | 2 +-
plugins/glade/plugin.c | 18 +++++++++---------
3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/libanjuta/anjuta-profile.c b/libanjuta/anjuta-profile.c
index 4979c46..81e2dba 100644
--- a/libanjuta/anjuta-profile.c
+++ b/libanjuta/anjuta-profile.c
@@ -1234,7 +1234,7 @@ anjuta_profile_set_sync_file (AnjutaProfile *profile, GFile *sync_file)
if (priv->sync_file)
g_object_unref (priv->sync_file);
priv->sync_file = sync_file;
- if (priv->sync_file);
+ if (priv->sync_file)
g_object_ref (priv->sync_file);
}
diff --git a/plugins/debug-manager/data_buffer.c b/plugins/debug-manager/data_buffer.c
index e8b8cfe..812733f 100644
--- a/plugins/debug-manager/data_buffer.c
+++ b/plugins/debug-manager/data_buffer.c
@@ -242,7 +242,7 @@ dma_data_buffer_read_page (DmaDataBuffer *buffer, gulong address)
{
if (page != NULL) page->validation = buffer->validation;
/* Data need to be refresh */
- if (buffer->read != NULL);
+ if (buffer->read != NULL)
buffer->read (address - (address % DMA_DATA_BUFFER_PAGE_SIZE),
DMA_DATA_BUFFER_PAGE_SIZE, buffer->user_data);
return page;
diff --git a/plugins/glade/plugin.c b/plugins/glade/plugin.c
index 4025494..fa2d192 100644
--- a/plugins/glade/plugin.c
+++ b/plugins/glade/plugin.c
@@ -199,24 +199,24 @@ signal_editor_signal_activated_cb (GladeSignalEditor* seditor,
GladePlugin *plugin)
{
IAnjutaEditor* current_editor;
- GladeWidget *gwidget = glade_signal_editor_get_widget (seditor);
- GladeProject *project = glade_widget_get_project (gwidget);
- const gchar *path = glade_project_get_path (project);
+ GladeWidget *gwidget = glade_signal_editor_get_widget (seditor);
+ GladeProject *project = glade_widget_get_project (gwidget);
+ const gchar *path = glade_project_get_path (project);
- IAnjutaDocumentManager *docman;
- IAnjutaDocument *doc;
+ IAnjutaDocumentManager *docman;
+ IAnjutaDocument *doc;
- docman = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
+ docman = anjuta_shell_get_interface (ANJUTA_PLUGIN (plugin)->shell,
IAnjutaDocumentManager, NULL);
- if (!docman)
- return;
+ if (!docman)
+ return;
doc = ianjuta_document_manager_get_current_document (docman, NULL);
if(!doc)
return;
current_editor = IANJUTA_IS_EDITOR (doc) ? IANJUTA_EDITOR (doc)
- :
get_doc_with_associated_file (plugin, doc);
+ : get_doc_with_associated_file (plugin, doc);
if(!current_editor)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]