summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-28 16:09:08 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-05 14:47:37 +0100
commit5a69c1f2aa588afd59a4c98892618585dbd8452e (patch)
treedc99b864d5878a2a673f6d690bb0af9a1135e6f1
parent87ef16d3c1de7f6eb2b9ec4883e0ae62771c9a63 (diff)
downloadmupdf-5a69c1f2aa588afd59a4c98892618585dbd8452e.tar.xz
Clean up trailing whitespace.
-rw-r--r--include/mupdf/fitz/context.h1
-rw-r--r--include/mupdf/fitz/stream.h2
-rw-r--r--include/mupdf/fitz/system.h1
-rw-r--r--source/fitz/document.c5
-rw-r--r--source/gprf/gprf-doc.c4
-rw-r--r--source/pdf/pdf-encoding.c1
-rw-r--r--source/pdf/pdf-form.c2
7 files changed, 5 insertions, 11 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 32ee450d..7f5e15c8 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -207,7 +207,6 @@ void fz_set_user_context(fz_context *ctx, void *user);
*/
void *fz_user_context(fz_context *ctx);
-
/*
fz_aa_level: Get the number of bits of antialiasing we are
using. Between 0 and 8.
diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h
index d9cb7509..a79846ec 100644
--- a/include/mupdf/fitz/stream.h
+++ b/include/mupdf/fitz/stream.h
@@ -186,8 +186,6 @@ int64_t fz_read_int64_le(fz_context *ctx, fz_stream *stm);
*/
void fz_read_string(fz_context *ctx, fz_stream *stm, char *buffer, int len);
-
-
enum
{
FZ_STREAM_META_PROGRESSIVE = 1,
diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h
index ca7c8dc0..2ae2f367 100644
--- a/include/mupdf/fitz/system.h
+++ b/include/mupdf/fitz/system.h
@@ -155,7 +155,6 @@ typedef int fz_off_t;
#define fz_atoo_imp atoi
#endif
-
#ifdef __ANDROID__
#include <android/log.h>
#define LOG_TAG "libmupdf"
diff --git a/source/fitz/document.c b/source/fitz/document.c
index abcbfd9c..b902161c 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -388,7 +388,8 @@ fz_keep_page(fz_context *ctx, fz_page *page)
void
fz_drop_page(fz_context *ctx, fz_page *page)
{
- if (page) {
+ if (page)
+ {
if (--page->refs == 0 && page->drop_page_imp)
{
page->drop_page_imp(ctx, page);
@@ -430,7 +431,6 @@ int fz_separation_disabled_on_page (fz_context *ctx, fz_page *page, int sep)
{
if (ctx == NULL || page == NULL || page->separation_disabled == NULL)
return 0;
-
return page->separation_disabled(ctx, page, sep);
}
@@ -442,6 +442,5 @@ const char *fz_get_separation_on_page(fz_context *ctx, fz_page *page, int sep, u
*cmyk = 0;
return NULL;
}
-
return page->get_separation(ctx, page, sep, rgba, cmyk);
}
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c
index 8126e040..55d88e17 100644
--- a/source/gprf/gprf-doc.c
+++ b/source/gprf/gprf-doc.c
@@ -769,14 +769,14 @@ static int gprf_count_separations(fz_context *ctx, fz_page *page_)
static void gprf_control_separation(fz_context *ctx, fz_page *page_, int sep, int disable)
{
gprf_page *page = (gprf_page *)page_;
-
+
fz_control_separation(ctx, page->separations, sep, disable);
}
static int gprf_separation_disabled(fz_context *ctx, fz_page *page_, int sep)
{
gprf_page *page = (gprf_page *)page_;
-
+
return fz_separation_disabled(ctx, page->separations, sep);
}
diff --git a/source/pdf/pdf-encoding.c b/source/pdf/pdf-encoding.c
index e8e7532d..b6bf3e11 100644
--- a/source/pdf/pdf-encoding.c
+++ b/source/pdf/pdf-encoding.c
@@ -52,7 +52,6 @@ pdf_lookup_agl(char *name)
return agl_code_list[m];
}
-
if (strstr(buf, "uni") == buf)
code = strtol(buf + 3, NULL, 16);
else if (strstr(buf, "u") == buf)
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c
index da48f403..9a2d35d9 100644
--- a/source/pdf/pdf-form.c
+++ b/source/pdf/pdf-form.c
@@ -1288,7 +1288,7 @@ int pdf_choice_widget_options(fz_context *ctx, pdf_document *doc, pdf_widget *tw
optarr = pdf_dict_get(ctx, annot->obj, PDF_NAME_Opt);
n = pdf_array_len(ctx, optarr);
-
+
if (opts)
{
for (i = 0; i < n; i++)