Skip to content

Commit

Permalink
xapian_wrap.cpp: remove unnecessary string constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rsto committed Sep 13, 2024
1 parent 04b7b4d commit d94aac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/xapian_wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ static Xapian::Query *query_new_messageid(const xapian_db_t *db __attribute__((u
enum search_part partnum,
const char *str)
{
return new Xapian::Query(std::string(get_term_prefix(partnum)) + str);
return new Xapian::Query(get_term_prefix(partnum) + str);
}

static Xapian::Query *query_new_email(const xapian_db_t *db,
Expand Down

0 comments on commit d94aac2

Please sign in to comment.