Skip to content

Commit

Permalink
Fix clang tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgamez committed Aug 18, 2023
1 parent aff3e33 commit 4638af0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
5 changes: 2 additions & 3 deletions extensions/sftp/processors/FetchSFTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <memory>
#include <algorithm>
#include <cstdint>
#include <string>
#include <utility>

#include "core/FlowFile.h"
Expand All @@ -40,8 +39,8 @@ void FetchSFTP::initialize() {
setSupportedRelationships(Relationships);
}

FetchSFTP::FetchSFTP(std::string name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(std::move(name), uuid) {
FetchSFTP::FetchSFTP(std::string_view name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(name, uuid) {
logger_ = core::logging::LoggerFactory<FetchSFTP>::getLogger(uuid_);
}

Expand Down
3 changes: 2 additions & 1 deletion extensions/sftp/processors/FetchSFTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <memory>
#include <string>
#include <string_view>

#include "SFTPProcessorBase.h"
#include "utils/ByteArrayCallback.h"
Expand All @@ -41,7 +42,7 @@ class FetchSFTP : public SFTPProcessorBase {
static constexpr char const *COMPLETION_STRATEGY_MOVE_FILE = "Move File";
static constexpr char const *COMPLETION_STRATEGY_DELETE_FILE = "Delete File";

explicit FetchSFTP(std::string name, const utils::Identifier& uuid = {});
explicit FetchSFTP(std::string_view name, const utils::Identifier& uuid = {});
~FetchSFTP() override;

EXTENSIONAPI static constexpr const char* Description = "Fetches the content of a file from a remote SFTP server "
Expand Down
5 changes: 2 additions & 3 deletions extensions/sftp/processors/ListSFTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <map>
#include <set>
#include <list>
#include <string>
#include <utility>
#include <vector>
#include <tuple>
Expand Down Expand Up @@ -67,8 +66,8 @@ void ListSFTP::initialize() {
setSupportedRelationships(Relationships);
}

ListSFTP::ListSFTP(std::string name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(std::move(name), uuid) {
ListSFTP::ListSFTP(std::string_view name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(name, uuid) {
logger_ = core::logging::LoggerFactory<ListSFTP>::getLogger(uuid_);
}

Expand Down
3 changes: 2 additions & 1 deletion extensions/sftp/processors/ListSFTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <vector>
#include <optional>
#include <utility>
#include <string_view>

#include "SFTPProcessorBase.h"
#include "core/Processor.h"
Expand Down Expand Up @@ -54,7 +55,7 @@ class ListSFTP : public SFTPProcessorBase {
static constexpr std::string_view ENTITY_TRACKING_INITIAL_LISTING_TARGET_TRACKING_TIME_WINDOW = "Tracking Time Window";
static constexpr std::string_view ENTITY_TRACKING_INITIAL_LISTING_TARGET_ALL_AVAILABLE = "All Available";

explicit ListSFTP(std::string name, const utils::Identifier& uuid = {});
explicit ListSFTP(std::string_view name, const utils::Identifier& uuid = {});
~ListSFTP() override;

EXTENSIONAPI static constexpr const char* Description = "Performs a listing of the files residing on an SFTP server. "
Expand Down
5 changes: 2 additions & 3 deletions extensions/sftp/processors/PutSFTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <cstdint>
#include <iostream>
#include <limits>
#include <string>
#include <utility>

#include "core/FlowFile.h"
Expand All @@ -41,8 +40,8 @@ void PutSFTP::initialize() {
setSupportedRelationships(Relationships);
}

PutSFTP::PutSFTP(std::string name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(std::move(name), uuid),
PutSFTP::PutSFTP(std::string_view name, const utils::Identifier& uuid /*= utils::Identifier()*/)
: SFTPProcessorBase(name, uuid),
create_directory_(false),
batch_size_(0),
reject_zero_byte_(false),
Expand Down
3 changes: 2 additions & 1 deletion extensions/sftp/processors/PutSFTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <memory>
#include <string>
#include <string_view>
#include <list>
#include <map>
#include <mutex>
Expand Down Expand Up @@ -50,7 +51,7 @@ class PutSFTP : public SFTPProcessorBase {
static constexpr std::string_view CONFLICT_RESOLUTION_FAIL = "FAIL";
static constexpr std::string_view CONFLICT_RESOLUTION_NONE = "NONE";

explicit PutSFTP(std::string name, const utils::Identifier& uuid = {});
explicit PutSFTP(std::string_view name, const utils::Identifier& uuid = {});
~PutSFTP() override;

EXTENSIONAPI static constexpr const char* Description = "Sends FlowFiles to an SFTP Server";
Expand Down

0 comments on commit 4638af0

Please sign in to comment.