diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
| commit | f15d22b6195aeeef6a16bf2c5b5501d55b285349 (patch) | |
| tree | d996c8dc4a4066ccde9c1ece9295e8e309d54304 /src/DownloadHandlerConstants.cc | |
| parent | 8477e463e90dcce164c6a1712b37a0906b547948 (diff) | |
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added vbegin() and vend() for fixed sized array.
* src/DownloadHandlerConstants.cc
* src/FeatureConfig.cc
* src/OptionHandlerFactory.cc
* src/ServerStat.cc
* src/TimeA2.cc
* src/XmlRpcMethod.cc
* src/array_fun.h
* src/download_helper.cc
* src/messageDigest.cc
* src/util.cc
* test/BittorrentHelperTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadContextTest.cc
* test/DownloadHelperTest.cc
* test/FeatureConfigTest.cc
* test/FeedbackURISelectorTest.cc
* test/HttpRequestTest.cc
* test/InOrderURISelectorTest.cc
* test/MSEHandshakeTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/PriorityPieceSelectorTest.cc
* test/RequestGroupManTest.cc
* test/UtilTest.cc
* test/XmlRpcMethodTest.cc
* test/a2algoTest.cc
* test/array_funTest.cc
Diffstat (limited to 'src/DownloadHandlerConstants.cc')
| -rw-r--r-- | src/DownloadHandlerConstants.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/DownloadHandlerConstants.cc b/src/DownloadHandlerConstants.cc index deb4e0c2..3cd6ca6e 100644 --- a/src/DownloadHandlerConstants.cc +++ b/src/DownloadHandlerConstants.cc @@ -57,8 +57,7 @@ const std::vector<std::string>& DownloadHandlerConstants::getMetalinkExtensions() { static const std::vector<std::string> l - (&METALINK_EXTENSIONS[0], - &METALINK_EXTENSIONS[arrayLength(METALINK_EXTENSIONS)]); + (vbegin(METALINK_EXTENSIONS), vend(METALINK_EXTENSIONS)); return l; } @@ -66,24 +65,21 @@ const std::vector<std::string>& DownloadHandlerConstants::getMetalinkContentTypes() { static const std::vector<std::string> l - (&METALINK_CONTENT_TYPES[0], - &METALINK_CONTENT_TYPES[arrayLength(METALINK_CONTENT_TYPES)]); + (vbegin(METALINK_CONTENT_TYPES), vend(METALINK_CONTENT_TYPES)); return l; } const std::vector<std::string>& DownloadHandlerConstants::getBtExtensions() { static const std::vector<std::string> l - (&BT_EXTENSIONS[0], - &BT_EXTENSIONS[arrayLength(BT_EXTENSIONS)]); + (vbegin(BT_EXTENSIONS), vend(BT_EXTENSIONS)); return l; } const std::vector<std::string>& DownloadHandlerConstants::getBtContentTypes() { static const std::vector<std::string> l - (&BT_CONTENT_TYPES[0], - &BT_CONTENT_TYPES[arrayLength(BT_CONTENT_TYPES)]); + (vbegin(BT_CONTENT_TYPES), vend(BT_CONTENT_TYPES)); return l; } |
