Skip to content

Commit

Permalink
#72 warning in build_filename() removed
Browse files Browse the repository at this point in the history
  • Loading branch information
pburow committed Sep 3, 2017
1 parent 89d0528 commit dbeaea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/librmb/tools/rmb/mailbox_tools.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* Copyright (c) 2017 Tallence AG and the authors, see the included COPYING file */


#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Expand Down Expand Up @@ -82,7 +81,7 @@ int MailboxTools::save_mail(librmb::RadosMailObject* mail_obj) {
return 0;
}

int MailboxTools::build_filename(librmb::RadosMailObject* mail_obj, const std::string& filename) {
int MailboxTools::build_filename(librmb::RadosMailObject* mail_obj, /*const*/ std::string& filename) {
if (mail_obj == nullptr || !filename.empty()) {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/librmb/tools/rmb/mailbox_tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class MailboxTools {
int delete_mailbox_dir();
int delete_mail(librmb::RadosMailObject* mail_obj);

int build_filename(librmb::RadosMailObject* mail_obj, const std::string& filename);
int build_filename(librmb::RadosMailObject* mail_obj, /*const*/ std::string& filename);

std::string& get_mailbox_path() { return this->mailbox_path; }

Expand Down

0 comments on commit dbeaea6

Please sign in to comment.