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
Родитель fd6ac24921
Коммит ad50a2449d
8 изменённых файлов: 16 добавлений и 6 удалений

Просмотреть файл

@ -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"

Просмотреть файл

@ -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;

Просмотреть файл

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

Просмотреть файл

@ -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

Просмотреть файл

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

Просмотреть файл

@ -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_

Просмотреть файл

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

Просмотреть файл

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