Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
9cc9d23a
Commit
9cc9d23a
authored
Aug 25, 2017
by
Ronan
Browse files
fix(EventsDb): try to fix mac compilation
parent
02e1935c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/db/events-db.cpp
src/db/events-db.cpp
+8
-3
No files found.
src/db/events-db.cpp
View file @
9cc9d23a
...
...
@@ -17,7 +17,6 @@
*/
#include <algorithm>
#include <utility>
#ifdef SOCI_ENABLED
#include <soci/soci.h>
...
...
@@ -48,7 +47,13 @@ EventsDb::EventsDb () : AbstractDb(*new EventsDbPrivate) {}
// Helpers.
// -----------------------------------------------------------------------------
static
constexpr
pair
<
EventsDb
::
Filter
,
const
char
*>
eventFilterToSql
[]
=
{
template
<
typename
T
>
struct
ToSqlPair
{
T
first
;
const
char
*
second
;
};
static
constexpr
ToSqlPair
<
EventsDb
::
Filter
>
eventFilterToSql
[]
=
{
{
EventsDb
::
MessageFilter
,
"1"
},
{
EventsDb
::
CallFilter
,
"2"
},
{
EventsDb
::
ConferenceFilter
,
"3"
}
...
...
@@ -62,7 +67,7 @@ static constexpr const char *mapMessageDirectionToSql (Message::Direction direct
return
direction
==
Message
::
Direction
::
Incoming
?
"1"
:
"2"
;
}
static
constexpr
p
air
<
Message
::
State
,
const
char
*
>
messageStateToSql
[]
=
{
static
constexpr
ToSqlP
air
<
Message
::
State
>
messageStateToSql
[]
=
{
{
Message
::
Idle
,
"1"
},
{
Message
::
InProgress
,
"2"
},
{
Message
::
Delivered
,
"3"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment