mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
Removed deprecated rak header files.
This commit is contained in:
+4
-4
@@ -5,11 +5,11 @@
|
||||
#include <fstream>
|
||||
#include <stdexcept>
|
||||
#include <string.h>
|
||||
#include <rak/string_manip.h>
|
||||
#include <torrent/throttle.h>
|
||||
#include <torrent/torrent.h>
|
||||
#include <torrent/download/resource_manager.h>
|
||||
#include <torrent/utils/log.h>
|
||||
#include <torrent/utils/string_manip.h>
|
||||
|
||||
#include "control.h"
|
||||
#include "core/download_list.h"
|
||||
@@ -286,8 +286,8 @@ Root::add_to_input_history(ui::DownloadList::Input type, std::string item) {
|
||||
|
||||
// Don't store item if it's empty or the same as the last one in the category.
|
||||
if (!item.empty() && item != itr->second.at(prev_item_pointer)) {
|
||||
itr->second.at(pitr->second) = rak::trim(item);
|
||||
m_input_history_pointers[type] = (pitr->second + 1) % m_input_history_length;
|
||||
itr->second.at(pitr->second) = torrent::utils::trim_spaces_str(item);
|
||||
m_input_history_pointers[type] = (pitr->second + 1) % m_input_history_length;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ Root::load_input_history() {
|
||||
InputHistory::iterator itr = input_history_tmp.find(type);
|
||||
|
||||
if (itr != input_history_tmp.end()) {
|
||||
std::string input_str = rak::trim(line.substr(delim_pos + 1));
|
||||
auto input_str = torrent::utils::trim_spaces_str(line.substr(delim_pos + 1));
|
||||
|
||||
if (!input_str.empty())
|
||||
itr->second.push_back(input_str);
|
||||
|
||||
Reference in New Issue
Block a user