summaryrefslogtreecommitdiff
path: root/src/cr-stylesheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cr-stylesheet.c')
-rw-r--r--src/cr-stylesheet.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/cr-stylesheet.c b/src/cr-stylesheet.c
index 69909da..06b27fc 100644
--- a/src/cr-stylesheet.c
+++ b/src/cr-stylesheet.c
@@ -1,4 +1,4 @@
-/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+/* -*- Mode: C; indent-tabs-mode: ni; c-basic-offset: 8 -*- */
/*
* This file is part of The Croco Library
@@ -36,9 +36,7 @@
CRStyleSheet *
cr_stylesheet_new (CRStatement * a_stmts)
{
- CRStyleSheet *result;
-
- result = g_try_malloc (sizeof (CRStyleSheet));
+ CRStyleSheet *result = (CRStyleSheet *)g_try_malloc (sizeof (CRStyleSheet));
if (!result) {
cr_utils_trace_info ("Out of memory");
return NULL;
@@ -57,11 +55,11 @@ cr_stylesheet_new (CRStatement * a_stmts)
*@return the serialized stylesheet.
*/
gchar *
-cr_stylesheet_to_string (CRStyleSheet const *a_this)
+cr_stylesheet_to_string (CRStyleSheet *a_this)
{
gchar *str = NULL;
GString *stringue = NULL;
- CRStatement const *cur_stmt = NULL;
+ CRStatement *cur_stmt = NULL;
g_return_val_if_fail (a_this, NULL);
@@ -95,7 +93,7 @@ cr_stylesheet_to_string (CRStyleSheet const *a_this)
*@param a_fp the destination file
*/
void
-cr_stylesheet_dump (CRStyleSheet const * a_this, FILE * a_fp)
+cr_stylesheet_dump (CRStyleSheet * a_this, FILE * a_fp)
{
gchar *str = NULL ;
@@ -115,7 +113,7 @@ cr_stylesheet_dump (CRStyleSheet const * a_this, FILE * a_fp)
*@return number of rules in the stylesheet.
*/
gint
-cr_stylesheet_nr_rules (CRStyleSheet const * a_this)
+cr_stylesheet_nr_rules (CRStyleSheet * a_this)
{
g_return_val_if_fail (a_this, -1);