Fixed gcc 4 compilation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16293 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2b89d38a63
commit
340a36b304
@ -1,8 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Node.h>
|
||||
#include <NodeInfo.h>
|
||||
#include <Path.h>
|
||||
#include <Roster.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "AppTypeWindow.h"
|
||||
#include "FileTypeApp.h"
|
||||
@ -25,7 +27,7 @@ void FileTypeApp::DispatchMessage(BMessage * msg, BHandler * handler)
|
||||
if (msg->FindInt32("argc",&argc) != B_OK) {
|
||||
argc=0;
|
||||
}
|
||||
const char ** argv = new (const char*)[argc];
|
||||
const char ** argv = new const char*[argc];
|
||||
for (int arg = 0; (arg < argc) ; arg++) {
|
||||
if (msg->FindString("argv",arg,&argv[arg]) != B_OK) {
|
||||
argv[arg] = "";
|
||||
|
Loading…
Reference in New Issue
Block a user