Skip to content

Commit

Permalink
Correct unnecessary-value-param clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben RUBSON committed Nov 2, 2017
1 parent 1254c68 commit a3d6b6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion encfs/base64.cpp
Expand Up @@ -252,7 +252,7 @@ bool B64StandardDecode(unsigned char *out, const unsigned char *in, int inLen) {
// If you want to use an alternate alphabet, change the characters here
const static char encodeLookup[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
std::string B64StandardEncode(std::vector<unsigned char> inputBuffer) {
std::string B64StandardEncode(const std::vector<unsigned char> &inputBuffer) {
std::string encodedString;
encodedString.reserve(B256ToB64Bytes(inputBuffer.size()));
long temp;
Expand Down
2 changes: 1 addition & 1 deletion encfs/base64.h
Expand Up @@ -73,7 +73,7 @@ void AsciiToB32(unsigned char *out, const unsigned char *in, int length);
bool B64StandardDecode(unsigned char *out, const unsigned char *in,
int inputLen);

std::string B64StandardEncode(std::vector<unsigned char> input);
std::string B64StandardEncode(const std::vector<unsigned char> &input);

} // namespace encfs

Expand Down
2 changes: 1 addition & 1 deletion encfs/encfs.cpp
Expand Up @@ -135,7 +135,7 @@ static void checkCanary(const std::shared_ptr<FileNode> &fnode) {
// helper function -- apply a functor to a node
static int withFileNode(const char *opName, const char *path,
struct fuse_file_info *fi,
function<int(FileNode *)> op) {
const function<int(FileNode *)> &op) {
EncFS_Context *ctx = context();

int res = -EIO;
Expand Down

0 comments on commit a3d6b6f

Please sign in to comment.