Browse Source

Made MetalinkMetaurl::MEDIATYPE_TORRENT const char[]

Tatsuhiro Tsujikawa 13 years ago
parent
commit
9a510ddac0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/MetalinkMetaurl.cc
  2. 1 1
      src/MetalinkMetaurl.h

+ 1 - 1
src/MetalinkMetaurl.cc

@@ -37,7 +37,7 @@
 
 namespace aria2 {
 
-const std::string MetalinkMetaurl::MEDIATYPE_TORRENT("torrent");
+const char MetalinkMetaurl::MEDIATYPE_TORRENT[] = "torrent";
 
 MetalinkMetaurl::MetalinkMetaurl():
   priority(MetalinkResource::getLowestPriority()) {}

+ 1 - 1
src/MetalinkMetaurl.h

@@ -55,7 +55,7 @@ public:
 
   ~MetalinkMetaurl();
 
-  static const std::string MEDIATYPE_TORRENT;
+  static const char MEDIATYPE_TORRENT[];
 };
 
 } // namespace aria2