Bug 517078. Move 'using namespace' out of header files, per comment from roc.

--HG--
extra : rebase_source : a67c25de3a53131df3e7dd68c0ae4209f496ea58
This commit is contained in:
Jonathan Griffin 2009-10-07 16:48:31 -07:00
parent dbad0b0f5d
commit 3b1bf36d73
8 changed files with 16 additions and 6 deletions

View File

@ -43,6 +43,8 @@
#include <string>
#include <sstream>
using namespace std;
#define PLUGIN_NAME "Test Plug-in"
#define PLUGIN_DESCRIPTION "Plug-in for testing purposes."
#define PLUGIN_VERSION "1.0.0.0"

View File

@ -43,8 +43,6 @@
#include <string>
#include <sstream>
using namespace std;
typedef enum {
DM_DEFAULT,
DM_SOLID_COLOR
@ -103,9 +101,9 @@ typedef struct InstanceData {
TestFunction functionToFail;
NPError failureCode;
PostMode postMode;
string testUrl;
string frame;
ostringstream err;
std::string testUrl;
std::string frame;
std::ostringstream err;
uint16_t streamMode;
int32_t streamChunkSize;
int32_t streamBufSize;

View File

@ -42,6 +42,8 @@
#endif
#include <gtk/gtk.h>
using namespace std;
struct _PlatformData {
Display* display;
GtkWidget* plug;

View File

@ -34,6 +34,8 @@
#include "nptest_platform.h"
#include <CoreServices/CoreServices.h>
using namespace std;
#ifdef __LP64__
// 64-bit requires the Cocoa event model
#define USE_COCOA_NPAPI 1

View File

@ -33,6 +33,8 @@
#include "nptest_platform.h"
using namespace std;
bool
pluginSupportsWindowMode()
{

View File

@ -118,6 +118,6 @@ int32_t pluginGetClipRegionRectEdge(InstanceData* instanceData,
* Just return if everything is OK, otherwise append error messages
* to 'error' separated by \n.
*/
void pluginDoInternalConsistencyCheck(InstanceData* instanceData, string& error);
void pluginDoInternalConsistencyCheck(InstanceData* instanceData, std::string& error);
#endif // nptest_platform_h_

View File

@ -33,6 +33,8 @@
#include "nptest_platform.h"
using namespace std;
bool
pluginSupportsWindowMode()
{

View File

@ -37,6 +37,8 @@
#include <windows.h>
#include <windowsx.h>
using namespace std;
#pragma comment(lib, "msimg32.lib")
void SetSubclass(HWND hWnd, InstanceData* instanceData);