diff options
-rw-r--r-- | dw/fltkplatform.hh | 2 | ||||
-rw-r--r-- | dw/layout.hh | 2 | ||||
-rw-r--r-- | dw/selection.hh | 2 | ||||
-rw-r--r-- | lout/misc.hh | 2 | ||||
-rw-r--r-- | src/cache.c | 2 | ||||
-rw-r--r-- | src/capi.c | 2 | ||||
-rw-r--r-- | src/colors.c | 2 | ||||
-rw-r--r-- | src/css.hh | 2 | ||||
-rw-r--r-- | src/gif.c | 4 | ||||
-rw-r--r-- | src/klist.c | 2 | ||||
-rw-r--r-- | src/url.c | 10 |
11 files changed, 16 insertions, 16 deletions
diff --git a/dw/fltkplatform.hh b/dw/fltkplatform.hh index 2fb95633..cbf3c6f9 100644 --- a/dw/fltkplatform.hh +++ b/dw/fltkplatform.hh @@ -149,7 +149,7 @@ public: void attachView (core::View *view); - void detachView (core::View *view); + void detachView (core::View *view); int textWidth (core::style::Font *font, const char *text, int len); char *textToUpper (const char *text, int len); diff --git a/dw/layout.hh b/dw/layout.hh index 63c3ed04..32b9a134 100644 --- a/dw/layout.hh +++ b/dw/layout.hh @@ -345,7 +345,7 @@ public: button); } - bool motionNotify (View *view, int x, int y, ButtonState state); + bool motionNotify (View *view, int x, int y, ButtonState state); void enterNotify (View *view, int x, int y, ButtonState state); void leaveNotify (View *view, ButtonState state); diff --git a/dw/selection.hh b/dw/selection.hh index ef9df0e0..3004d2d4 100644 --- a/dw/selection.hh +++ b/dw/selection.hh @@ -178,7 +178,7 @@ namespace core { class SelectionState { public: - enum { END_OF_WORD = 1 << 30 }; + enum { END_OF_WORD = 1 << 30 }; private: Layout *layout; diff --git a/lout/misc.hh b/lout/misc.hh index 7edf83c1..b362fc2f 100644 --- a/lout/misc.hh +++ b/lout/misc.hh @@ -387,7 +387,7 @@ public: this->startExtra = index; resizeExtra (); } else { - if (index < startExtra) { + if (index < startExtra) { consolidate (); insert (index, numInsert); } else if (index < startExtra + numExtra) { diff --git a/src/cache.c b/src/cache.c index 17ddbc25..ee424c58 100644 --- a/src/cache.c +++ b/src/cache.c @@ -498,7 +498,7 @@ const char *a_Cache_set_content_type(const DilloUrl *url, const char *ctype, _MSG("a_Cache_set_content_type {%s} {%s}\n", ctype, URL_STR(url)); curr = Cache_current_content_type(entry); - if (entry->TypeMeta || (*from == 'h' && entry->TypeHdr) ) { + if (entry->TypeMeta || (*from == 'h' && entry->TypeHdr) ) { /* Type is already been set. Do nothing. * BTW, META overrides TypeHdr */ } else { @@ -345,7 +345,7 @@ static char *Capi_dpi_build_cmd(DilloWeb *web, char *server) /* * Send the requested URL's source to the "view source" dpi */ -static void Capi_dpi_send_source(BrowserWindow *bw, DilloUrl *url) +static void Capi_dpi_send_source(BrowserWindow *bw, DilloUrl *url) { char *p, *buf, *cmd, size_str[32], *server="vsource"; int buf_size; diff --git a/src/colors.c b/src/colors.c index fe3598eb..237e63a1 100644 --- a/src/colors.c +++ b/src/colors.c @@ -303,7 +303,7 @@ int32_t a_Color_parse (const char *str, int32_t default_color, int *err) static int Color_distance(long c1, long c2) { return (labs((c1 & 0x0000ff) - (c2 & 0x0000ff)) + - labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) + + labs(((c1 & 0x00ff00) - (c2 & 0x00ff00)) >> 8) + labs(((c1 & 0xff0000) - (c2 & 0xff0000)) >> 16)) / 75; } #endif @@ -133,7 +133,7 @@ inline float CSS_LENGTH_VALUE (CssLength l) { case CSS_LENGTH_TYPE_EX: case CSS_LENGTH_TYPE_PERCENTAGE: case CSS_LENGTH_TYPE_RELATIVE: - return ((float)(l & ~7)) / (1 << 15); + return ((float)(l & ~7)) / (1 << 15); case CSS_LENGTH_TYPE_AUTO: return 0.0; default: @@ -800,8 +800,8 @@ static size_t Gif_do_img_desc(DilloGif *gif, void *Buf, if (bsize < 10) return 0; - gif->Width = LM_to_uint(buf[4], buf[5]); - gif->Height = LM_to_uint(buf[6], buf[7]); + gif->Width = LM_to_uint(buf[4], buf[5]); + gif->Height = LM_to_uint(buf[6], buf[7]); /* check max image size */ if (gif->Width <= 0 || gif->Height <= 0 || diff --git a/src/klist.c b/src/klist.c index 813269a3..e5e695e2 100644 --- a/src/klist.c +++ b/src/klist.c @@ -74,7 +74,7 @@ int a_Klist_insert(Klist_t **Klist, void *Data) a_Klist_get_data((*Klist), (*Klist)->Counter)); Node = dNew(KlistNode_t, 1); - Node->Key = (*Klist)->Counter; + Node->Key = (*Klist)->Counter; Node->Data = Data; dList_insert_sorted((*Klist)->List, Node, Klist_node_by_node_cmp); return (*Klist)->Counter; @@ -379,10 +379,10 @@ DilloUrl* a_Url_new(const char *url_str, const char *base_url) for (i = 0; url_str[i]; ++i) if (url_str[i] > 0x1F && url_str[i] < 0x7F && url_str[i] != ' ') *p++ = url_str[i]; - else { - *p++ = '%'; - *p++ = HEX[(url_str[i] >> 4) & 15]; - *p++ = HEX[url_str[i] & 15]; + else { + *p++ = '%'; + *p++ = HEX[(url_str[i] >> 4) & 15]; + *p++ = HEX[url_str[i] & 15]; } *p = 0; urlstr = str1; @@ -509,7 +509,7 @@ void a_Url_set_ismap_coords(DilloUrl *u, char *coord_str) if (!u->ismap_url_len) { /* Save base-url length (without coords) */ - u->ismap_url_len = URL_STR_(u) ? u->url_string->len : 0; + u->ismap_url_len = URL_STR_(u) ? u->url_string->len : 0; a_Url_set_flags(u, URL_FLAGS(u) | URL_Ismap); } if (u->url_string) { |