Bug 208314 - remove use of iostreams to allow building with compilers
that don't support classic C++ iostreams (ex: MSVC++ .net 2003). r=timeless, sr=dbaron
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIComponentManager.h"
|
||||
#include "nsIEnumerator.h"
|
||||
#include <iostream.h> //BAD DOG -- no biscuit!
|
||||
#include <stdio.h>
|
||||
#include "nsReadableUtils.h"
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ main(int argc, char* argv[])
|
||||
}
|
||||
char* value = ToNewCString(v);
|
||||
if (value) {
|
||||
cout << "\"" << i << "\"=\"" << value << "\"" << endl;
|
||||
printf("\"%d\"=\"%s\"\n", i, value);
|
||||
delete[] value;
|
||||
}
|
||||
else {
|
||||
@@ -134,8 +134,8 @@ main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
|
||||
cout << endl << "Key" << "\t" << "Value" << endl;
|
||||
cout << "---" << "\t" << "-----" << endl;
|
||||
printf("\nKey\tValue\n");
|
||||
printf( "---\t-----\n");
|
||||
|
||||
PRBool hasMore;
|
||||
while (NS_SUCCEEDED(propEnum->HasMoreElements(&hasMore)) &&
|
||||
@@ -163,7 +163,7 @@ main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
cout << key.get() << "\t" << value.get() << endl;
|
||||
printf("%s\t%s\n", key.get(), value.get());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user