Fix warnings on non-static data member initializers (C++11 feature)
We're not formally using C++11 yet so those trigger compilation warnings (at least with GCC 5): ./main/input_default.h:122:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 CursorShape default_shape = CURSOR_ARROW; ^ Note: We may allow those eventually (especially for non-int static const), but most of current occurrences were inconsistent with all other classes. See also http://www.stroustrup.com/C++11FAQ.html#member-init
This commit is contained in:
parent
2893b5a6be
commit
2b084352b9
@ -86,7 +86,7 @@ public:
|
|||||||
|
|
||||||
Vector<Vector3> handles;
|
Vector<Vector3> handles;
|
||||||
Vector<Vector3> secondary_handles;
|
Vector<Vector3> secondary_handles;
|
||||||
float selectable_icon_size = -1.0f;
|
float selectable_icon_size;
|
||||||
bool billboard_handle;
|
bool billboard_handle;
|
||||||
|
|
||||||
bool valid;
|
bool valid;
|
||||||
|
@ -715,6 +715,7 @@ EditorSpatialGizmo::EditorSpatialGizmo() {
|
|||||||
instanced = false;
|
instanced = false;
|
||||||
spatial_node = NULL;
|
spatial_node = NULL;
|
||||||
gizmo_plugin = NULL;
|
gizmo_plugin = NULL;
|
||||||
|
selectable_icon_size = -1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorSpatialGizmo::~EditorSpatialGizmo() {
|
EditorSpatialGizmo::~EditorSpatialGizmo() {
|
||||||
|
@ -636,6 +636,7 @@ InputDefault::InputDefault() {
|
|||||||
emulate_mouse_from_touch = false;
|
emulate_mouse_from_touch = false;
|
||||||
mouse_from_touch_index = -1;
|
mouse_from_touch_index = -1;
|
||||||
main_loop = NULL;
|
main_loop = NULL;
|
||||||
|
default_shape = CURSOR_ARROW;
|
||||||
|
|
||||||
hat_map_default[HAT_UP].type = TYPE_BUTTON;
|
hat_map_default[HAT_UP].type = TYPE_BUTTON;
|
||||||
hat_map_default[HAT_UP].index = JOY_DPAD_UP;
|
hat_map_default[HAT_UP].index = JOY_DPAD_UP;
|
||||||
|
@ -119,7 +119,8 @@ class InputDefault : public Input {
|
|||||||
SpeedTrack mouse_speed_track;
|
SpeedTrack mouse_speed_track;
|
||||||
Map<int, Joypad> joy_names;
|
Map<int, Joypad> joy_names;
|
||||||
int fallback_mapping;
|
int fallback_mapping;
|
||||||
CursorShape default_shape = CURSOR_ARROW;
|
|
||||||
|
CursorShape default_shape;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum HatMask {
|
enum HatMask {
|
||||||
|
@ -3496,6 +3496,7 @@ VisualScriptEditor::VisualScriptEditor() {
|
|||||||
clipboard = memnew(Clipboard);
|
clipboard = memnew(Clipboard);
|
||||||
}
|
}
|
||||||
updating_graph = false;
|
updating_graph = false;
|
||||||
|
seq_connect = false;
|
||||||
|
|
||||||
edit_menu = memnew(MenuButton);
|
edit_menu = memnew(MenuButton);
|
||||||
edit_menu->set_text(TTR("Edit"));
|
edit_menu->set_text(TTR("Edit"));
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include "scene/gui/graph_edit.h"
|
#include "scene/gui/graph_edit.h"
|
||||||
#include "visual_script.h"
|
#include "visual_script.h"
|
||||||
#include "visual_script_property_selector.h"
|
#include "visual_script_property_selector.h"
|
||||||
|
|
||||||
class VisualScriptEditorSignalEdit;
|
class VisualScriptEditorSignalEdit;
|
||||||
class VisualScriptEditorVariableEdit;
|
class VisualScriptEditorVariableEdit;
|
||||||
|
|
||||||
@ -159,7 +160,7 @@ class VisualScriptEditor : public ScriptEditorBase {
|
|||||||
MemberType member_type;
|
MemberType member_type;
|
||||||
String member_name;
|
String member_name;
|
||||||
|
|
||||||
bool seq_connect = false;
|
bool seq_connect;
|
||||||
|
|
||||||
PortAction port_action;
|
PortAction port_action;
|
||||||
int port_action_node;
|
int port_action_node;
|
||||||
|
@ -721,6 +721,7 @@ VisualScriptPropertySelector::VisualScriptPropertySelector() {
|
|||||||
search_options->set_hide_root(true);
|
search_options->set_hide_root(true);
|
||||||
search_options->set_hide_folding(true);
|
search_options->set_hide_folding(true);
|
||||||
virtuals_only = false;
|
virtuals_only = false;
|
||||||
|
seq_connect = false;
|
||||||
help_bit = memnew(EditorHelpBit);
|
help_bit = memnew(EditorHelpBit);
|
||||||
vbc->add_margin_child(TTR("Description:"), help_bit);
|
vbc->add_margin_child(TTR("Description:"), help_bit);
|
||||||
help_bit->connect("request_hide", this, "_closed");
|
help_bit->connect("request_hide", this, "_closed");
|
||||||
|
@ -63,8 +63,7 @@ class VisualScriptPropertySelector : public ConfirmationDialog {
|
|||||||
ObjectID script;
|
ObjectID script;
|
||||||
Object *instance;
|
Object *instance;
|
||||||
bool virtuals_only;
|
bool virtuals_only;
|
||||||
|
bool seq_connect;
|
||||||
bool seq_connect = false;
|
|
||||||
|
|
||||||
void _item_selected();
|
void _item_selected();
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ class AudioStreamPlaybackMicrophone : public AudioStreamPlaybackResampled {
|
|||||||
GDCLASS(AudioStreamPlaybackMicrophone, AudioStreamPlayback)
|
GDCLASS(AudioStreamPlaybackMicrophone, AudioStreamPlayback)
|
||||||
friend class AudioStreamMicrophone;
|
friend class AudioStreamMicrophone;
|
||||||
|
|
||||||
const int MICROPHONE_PLAYBACK_DELAY = 256;
|
static const int MICROPHONE_PLAYBACK_DELAY = 256;
|
||||||
|
|
||||||
bool active;
|
bool active;
|
||||||
unsigned int input_ofs;
|
unsigned int input_ofs;
|
||||||
|
@ -49,7 +49,7 @@ class AudioEffectRecordInstance : public AudioEffectInstance {
|
|||||||
|
|
||||||
bool is_recording;
|
bool is_recording;
|
||||||
Thread *io_thread;
|
Thread *io_thread;
|
||||||
bool thread_active = false;
|
bool thread_active;
|
||||||
|
|
||||||
Vector<AudioFrame> ring_buffer;
|
Vector<AudioFrame> ring_buffer;
|
||||||
Vector<float> recording_data;
|
Vector<float> recording_data;
|
||||||
@ -67,6 +67,9 @@ public:
|
|||||||
void init();
|
void init();
|
||||||
virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
|
virtual void process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count);
|
||||||
virtual bool process_silence();
|
virtual bool process_silence();
|
||||||
|
|
||||||
|
AudioEffectRecordInstance() :
|
||||||
|
thread_active(false) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class AudioEffectRecord : public AudioEffect {
|
class AudioEffectRecord : public AudioEffect {
|
||||||
|
Loading…
Reference in New Issue
Block a user