Remove cpplint namespace-related warnings

This commit is contained in:
Lovell Fuller
2015-01-09 16:33:14 +00:00
parent 67dc694cfb
commit 8e9a8dfede
4 changed files with 29 additions and 8 deletions

View File

@@ -6,8 +6,23 @@
#include "common.h"
#include "metadata.h"
using namespace v8;
using namespace sharp;
using v8::Handle;
using v8::Local;
using v8::Value;
using v8::Object;
using v8::Number;
using v8::String;
using v8::Boolean;
using v8::Function;
using v8::Exception;
using sharp::ImageType;
using sharp::DetermineImageType;
using sharp::InitImage;
using sharp::HasProfile;
using sharp::HasAlpha;
using sharp::ExifOrientation;
using sharp::counterQueue;
struct MetadataBaton {
// Input

View File

@@ -8,7 +8,9 @@
#include "resize.h"
#include "utilities.h"
using namespace v8;
using v8::Handle;
using v8::Object;
using node::AtExit;
static void at_exit(void* arg) {
NanScope();
@@ -18,7 +20,7 @@ static void at_exit(void* arg) {
extern "C" void init(Handle<Object> target) {
NanScope();
vips_init("sharp");
node::AtExit(at_exit);
AtExit(at_exit);
// Set libvips operation cache limits
vips_cache_set_max_mem(100 * 1048576); // 100 MB

View File

@@ -6,8 +6,13 @@
#include "common.h"
#include "utilities.h"
using namespace v8;
using namespace sharp;
using v8::Local;
using v8::Object;
using v8::Number;
using v8::String;
using sharp::counterQueue;
using sharp::counterProcess;
/*
Get and set cache memory and item limits