Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vmime/component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void component::parseImpl(
}


const string component::generate(
string component::generate(
const size_t maxLineLength,
const size_t curLinePos
) const {
Expand Down
2 changes: 1 addition & 1 deletion src/vmime/component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class VMIME_EXPORT component : public object {
* @param curLinePos length of the current line in the output buffer
* @return generated data
*/
virtual const string generate(
virtual string generate(
const size_t maxLineLength = lineLengthLimits::infinite,
const size_t curLinePos = 0
) const;
Expand Down
2 changes: 1 addition & 1 deletion src/vmime/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ message::message() {
}


const string message::generate(
string message::generate(
const size_t maxLineLength,
const size_t curLinePos
) const {
Expand Down
2 changes: 1 addition & 1 deletion src/vmime/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class VMIME_EXPORT message : public bodyPart {

// Override default generate() functions so that we can change
// the default 'maxLineLength' value
const string generate(
string generate(
const size_t maxLineLength = generationContext::getDefaultContext().getMaxLineLength(),
const size_t curLinePos = 0
) const;
Expand Down
8 changes: 8 additions & 0 deletions tests/parser/mailboxTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,12 @@ VMIME_TEST_SUITE_BEGIN(mailboxTest)

}

void testAPI() {

auto take_string_directly = [](vmime::string &&) {};
vmime::mailbox m;
take_string_directly(m.generate());

}

VMIME_TEST_SUITE_END
Loading