diff options
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_device.c | 2 | ||||
-rw-r--r-- | pdf/pdf_form.c | 10 | ||||
-rw-r--r-- | pdf/pdf_function.c | 8 | ||||
-rw-r--r-- | pdf/pdf_js.c | 2 | ||||
-rw-r--r-- | pdf/pdf_lex.c | 2 | ||||
-rw-r--r-- | pdf/pdf_xref.c | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/pdf/pdf_device.c b/pdf/pdf_device.c index 058f4cb9..dd21fb4b 100644 --- a/pdf/pdf_device.c +++ b/pdf/pdf_device.c @@ -202,7 +202,7 @@ send_image(pdf_device *pdev, fz_image *image, int mask, int smask) pdf_dict_puts_drop(imobj, "ColorSpace", pdf_new_name(ctx, "DeviceRGB")); else if (colorspace->n == 4) pdf_dict_puts_drop(imobj, "ColorSpace", pdf_new_name(ctx, "DeviceCMYK")); - switch(cp ? cp->type : FZ_IMAGE_UNKNOWN) + switch (cp ? cp->type : FZ_IMAGE_UNKNOWN) { case FZ_IMAGE_UNKNOWN: default: diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index 9e02f2d0..339968a3 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -376,7 +376,7 @@ static fz_rect *measure_text(pdf_document *doc, font_info *font_rec, const fz_ma static void fzbuf_print_color(fz_context *ctx, fz_buffer *fzbuf, pdf_obj *arr, int stroke, float adj) { - switch(pdf_array_len(arr)) + switch (pdf_array_len(arr)) { case 1: fz_buffer_printf(ctx, fzbuf, stroke?"%f G\n":"%f g\n", @@ -837,7 +837,7 @@ static fz_buffer *create_text_appearance(pdf_document *doc, const fz_rect *bbox, { fz_translate(&tm, rect.x0, rect.y1 - (height+(ascent-descent)*fontsize)/2.0); - switch(info->q) + switch (info->q) { case Q_Right: tm.e += width; break; case Q_Cent: tm.e += width/2; break; @@ -1766,7 +1766,7 @@ void pdf_update_appearance(pdf_document *doc, pdf_obj *obj) switch (type) { case FZ_ANNOT_WIDGET: - switch(pdf_field_type(doc, obj)) + switch (pdf_field_type(doc, obj)) { case FZ_WIDGET_TYPE_TEXT: { @@ -2120,7 +2120,7 @@ int pdf_pass_event(pdf_document *doc, pdf_page *page, fz_ui_event *ui_event) if (annot) { - switch(annot->widget_type) + switch (annot->widget_type) { case FZ_WIDGET_TYPE_RADIOBUTTON: case FZ_WIDGET_TYPE_CHECKBOX: @@ -2750,7 +2750,7 @@ int pdf_choice_widget_is_multiselect(pdf_document *doc, fz_widget *tw) if (!annot) return 0; - switch(pdf_field_type(doc, annot->obj)) + switch (pdf_field_type(doc, annot->obj)) { case FZ_WIDGET_TYPE_LISTBOX: case FZ_WIDGET_TYPE_COMBOBOX: diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index 360f619b..dff0a8fb 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -705,7 +705,7 @@ parse_code(pdf_function *func, fz_stream *stream, int *codeptr, pdf_lexbuf *buf) { tok = pdf_lex(stream, buf); - switch(tok) + switch (tok) { case PDF_TOK_EOF: fz_throw(ctx, "truncated calculator function"); @@ -1358,7 +1358,7 @@ pdf_free_function_imp(fz_context *ctx, fz_storable *func_) pdf_function *func = (pdf_function *)func_; int i; - switch(func->type) + switch (func->type) { case SAMPLE: fz_free(ctx, func->u.sa.samples); @@ -1384,7 +1384,7 @@ pdf_eval_function(fz_context *ctx, fz_function *func_, float *in, float *out) { pdf_function *func = (pdf_function *)func_; - switch(func->type) + switch (func->type) { case SAMPLE: eval_sample_func(ctx, func, in, out); break; case EXPONENTIAL: eval_exponential_func(ctx, func, *in, out); break; @@ -1677,7 +1677,7 @@ pdf_load_function(pdf_document *xref, pdf_obj *dict, int in, int out) fz_try(ctx) { - switch(func->type) + switch (func->type) { case SAMPLE: load_sample_func(func, xref, dict, pdf_to_num(dict), pdf_to_gen(dict)); diff --git a/pdf/pdf_js.c b/pdf/pdf_js.c index f0920005..23b51df6 100644 --- a/pdf/pdf_js.c +++ b/pdf/pdf_js.c @@ -124,7 +124,7 @@ static pdf_jsimp_obj *app_launchURL(void *jsctx, void *obj, int argc, pdf_jsimp_ char *cUrl; int bNewFrame = 0; - switch(argc) + switch (argc) { default: return NULL; diff --git a/pdf/pdf_lex.c b/pdf/pdf_lex.c index 233ffb6d..9b4ff280 100644 --- a/pdf/pdf_lex.c +++ b/pdf/pdf_lex.c @@ -505,7 +505,7 @@ pdf_lex(fz_stream *f, pdf_lexbuf *buf) void pdf_print_token(fz_context *ctx, fz_buffer *fzbuf, int tok, pdf_lexbuf *buf) { - switch(tok) + switch (tok) { case PDF_TOK_NAME: fz_buffer_printf(ctx, fzbuf, "/%s", buf->scratch); diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index ac89109d..bee9e210 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -1259,7 +1259,7 @@ pdf_update_stream(pdf_document *xref, int num, fz_buffer *newbuf) int pdf_meta(pdf_document *doc, int key, void *ptr, int size) { - switch(key) + switch (key) { /* ptr: Pointer to block (uninitialised on entry) |