diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 16:52:42 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-16 16:52:42 +0000 |
commit | f79f486ecd399ed82fd2cf9445f99c810bf4d7c1 (patch) | |
tree | 02c39d8c5f3e6bd08e0e3dba3c1f28ec69d18e89 /webkit | |
parent | a278e260059b68f4c4262b9f4732d9b2d6b6b1d5 (diff) | |
download | chromium_src-f79f486ecd399ed82fd2cf9445f99c810bf4d7c1.zip chromium_src-f79f486ecd399ed82fd2cf9445f99c810bf4d7c1.tar.gz chromium_src-f79f486ecd399ed82fd2cf9445f99c810bf4d7c1.tar.bz2 |
Eliminate VS2010 ifdefs for handling NULL in std::pair.
Remove lots of duplicated ifdefs, replacing them with syntax that works
on all platforms (including VS2010).
BUG=106215
Review URL: https://chromiumcodereview.appspot.com/8735002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/blob/deletable_file_reference.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/webkit/blob/deletable_file_reference.cc b/webkit/blob/deletable_file_reference.cc index 4a5665d..78cfafb 100644 --- a/webkit/blob/deletable_file_reference.cc +++ b/webkit/blob/deletable_file_reference.cc @@ -35,14 +35,8 @@ scoped_refptr<DeletableFileReference> DeletableFileReference::GetOrCreate( DCHECK(file_thread); typedef std::pair<DeleteableFileMap::iterator, bool> InsertResult; - // Visual Studio 2010 has problems converting NULL to the null pointer for - // std::pair. See http://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair - // It will work if we pass nullptr. -#if defined(_MSC_VER) && _MSC_VER >= 1600 - webkit_blob::DeletableFileReference* null_reference = nullptr; -#else + // Required for VS2010: http://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair webkit_blob::DeletableFileReference* null_reference = NULL; -#endif InsertResult result = g_deletable_file_map.Get().insert( DeleteableFileMap::value_type(path, null_reference)); if (result.second == false) |