mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
~[] to Vec in glfw_windowing and servo
This commit is contained in:
parent
7605464c24
commit
81fd243f37
2 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue