Explorar el Código

Made MetalinkMetaurl::MEDIATYPE_TORRENT const char[]

Tatsuhiro Tsujikawa hace 13 años
padre
commit
9a510ddac0
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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