[vala] sdl, sdl-image: remove default params preceding parass without defaults
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] sdl, sdl-image: remove default params preceding parass without defaults
- Date: Sat, 5 Oct 2013 20:15:25 +0000 (UTC)
commit a6e9b6dab950f4d22a2b4e162e04415ecf40b2ae
Author: Evan Nemerson <evan coeus-group com>
Date: Sat Oct 5 13:12:25 2013 -0700
sdl, sdl-image: remove default params preceding parass without defaults
They cause a warning from valac, and you always have to provide values
for them in Vala, so they really aren't doing any good.
vapi/sdl-image.vapi | 2 +-
vapi/sdl.vapi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapi/sdl-image.vapi b/vapi/sdl-image.vapi
index 9c483e2..ffe4d74 100644
--- a/vapi/sdl-image.vapi
+++ b/vapi/sdl-image.vapi
@@ -30,7 +30,7 @@ namespace SDLImage {
public static SDL.Surface? load_rw(SDL.RWops src, bool freesrc = false);
[CCode (cname = "IMG_LoadTyped_RW")]
- public static SDL.Surface? load_rw_typed(SDL.RWops src, bool freesrc = false, string type);
+ public static SDL.Surface? load_rw_typed(SDL.RWops src, bool freesrc, string type);
[CCode (cname = "IMG_LoadCUR_RW")]
public static SDL.Surface? load_cur(SDL.RWops src);
diff --git a/vapi/sdl.vapi b/vapi/sdl.vapi
index cb9aaaf..9d79b49 100644
--- a/vapi/sdl.vapi
+++ b/vapi/sdl.vapi
@@ -1039,7 +1039,7 @@ namespace SDL {
public static void pause(int pause_on);
[CCode (cname="SDL_LoadWAV_RW")]
- public static unowned AudioSpec? load(RWops src, int freesrc=0, ref AudioSpec spec, out
uint8[] audio_buf);
+ public static unowned AudioSpec? load(RWops src, int freesrc, ref AudioSpec spec, out uint8[]
audio_buf);
[CCode (cname="SDL_FreeWAV")]
public static void free(uchar* audio_buf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]