[nautilus-actions] exporter_get_formats(): fix variable declaration
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] exporter_get_formats(): fix variable declaration
- Date: Tue, 3 Jan 2012 22:33:29 +0000 (UTC)
commit 224d4ea8045c6086e3ef765bb53b0ed8794d7fc0
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Jan 2 05:16:06 2012 +0100
exporter_get_formats(): fix variable declaration
ChangeLog | 2 ++
src/core/na-exporter.c | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f7adcb5..7ab8c86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2012-01-02 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-exporter.c (exporter_get_formats): Fix variable declaration.
+
* src/api/na-core-utils.h:
* src/core/na-core-utils.c (na_core_utils_str_add_prefix):
Fix function deprecation.
diff --git a/src/core/na-exporter.c b/src/core/na-exporter.c
index 569d9bc..c8154a5 100644
--- a/src/core/na-exporter.c
+++ b/src/core/na-exporter.c
@@ -272,11 +272,12 @@ exporter_get_formats( const NAIExporter *exporter )
if( NA_IEXPORTER_GET_INTERFACE( exporter )->get_formats ){
if( version == 1 ){
#ifndef NA_DISABLE_DEPRECATED
- ( const NAIExporterFormat * ) strv1 = NA_IEXPORTER_GET_INTERFACE( exporter )->get_formats( exporter );
+ const NAIExporterFormat * strv1;
+ strv1 = NA_IEXPORTER_GET_INTERFACE( exporter )->get_formats( exporter );
while( strv1->format ){
NAIExporterFormatExt *strv2 = g_new0( NAIExporterFormatExt, 1 );
strv2->version = 1;
- strv2->provider = exporter;
+ strv2->provider = ( NAIExporter * ) exporter;
strv2->format = strv1->format;
strv2->label = strv1->label;
strv2->description = strv1->description;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]