]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix cpplint warnings
authorCheng Zhao <zcbenz@gmail.com>
Thu, 12 Feb 2015 11:50:28 +0000 (19:50 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 12 Feb 2015 11:50:28 +0000 (19:50 +0800)
atom/common/asar/asar_util.cc
atom/common/asar/asar_util.h

index 7c35ddcc5c2c3031483f5f508263fc0616986305..43e2601ac456b5a50b582bc5cdbc31ea9b3704b4 100644 (file)
@@ -5,6 +5,7 @@
 #include "atom/common/asar/asar_util.h"
 
 #include <map>
+#include <string>
 
 #include "atom/common/asar/archive.h"
 #include "base/files/file_path.h"
 
 namespace asar {
 
-typedef std::map<base::FilePath, std::shared_ptr<Archive>> ArchiveMap;
-
 namespace {
 
 // The global instance of ArchiveMap, will be destroyed on exit.
+typedef std::map<base::FilePath, std::shared_ptr<Archive>> ArchiveMap;
 static base::LazyInstance<ArchiveMap> g_archive_map = LAZY_INSTANCE_INITIALIZER;
 
 const base::FilePath::CharType kAsarExtension[] = FILE_PATH_LITERAL(".asar");
index b3c60f679b5218f19db017a3f92f5427f983f671..4cb5b88e04838199024c28ace4679fdcc424c674 100644 (file)
@@ -6,6 +6,7 @@
 #define ATOM_COMMON_ASAR_ASAR_UTIL_H_
 
 #include <memory>
+#include <string>
 
 namespace base {
 class FilePath;