~[] to Vec in glfw_windowing and servo

This commit is contained in:
Matt Murphy 2014-04-23 21:55:48 -05:00 committed by Ms2ger
parent 7605464c24
commit 81fd243f37
2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ pub struct Window {
pub glfw_window: glfw::Window,
pub events: Receiver<(f64, glfw::WindowEvent)>,
pub event_queue: RefCell<~[WindowEvent]>,
pub event_queue: RefCell<Vec<WindowEvent>>,
pub drag_origin: Point2D<c_int>,
@ -116,7 +116,7 @@ impl WindowMethods<Application> for Window {
glfw_window: glfw_window,
events: events,
event_queue: RefCell::new(~[]),
event_queue: RefCell::new(Vec::new()),
drag_origin: Point2D(0 as c_int, 0),

View file

@ -137,7 +137,7 @@ fn start(argc: int, argv: **u8) -> int {
#[no_mangle]
pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
native::start(argc, argv, proc() {
let mut args:~[~str] = ~[];
let mut args: Vec<~str> = Vec::new();
for i in range(0u, argc as uint) {
unsafe {
args.push(str::raw::from_c_str(*argv.offset(i as int) as *i8));