mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
fix(MainDb): use references when possible
This commit is contained in:
parent
759ecda219
commit
dcef9e4f97
1 changed files with 3 additions and 3 deletions
|
|
@ -143,11 +143,11 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
|
||||
long long messageContentId = q->getLastInsertId();
|
||||
if (content.getContentType().isFile()) {
|
||||
const FileContent *fileContent = (const FileContent *)&content;
|
||||
const FileContent &fileContent = static_cast<const FileContent &>(content);
|
||||
*session << "INSERT INTO chat_message_file_content (chat_message_content_id, name, size, path) VALUES "
|
||||
" (:contentId, :name, :size, :path)",
|
||||
soci::use(messageContentId), soci::use(fileContent->getFileName()),
|
||||
soci::use(fileContent->getFileSize()), soci::use(fileContent->getFilePath());
|
||||
soci::use(messageContentId), soci::use(fileContent.getFileName()),
|
||||
soci::use(fileContent.getFileSize()), soci::use(fileContent.getFilePath());
|
||||
}
|
||||
|
||||
for (const auto &appData : content.getAppDataMap())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue