Skip to content

Commit

Permalink
Export at least one symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Nov 29, 2019
1 parent 294f36d commit 18cde59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions tl/tl_basic_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@
//
#include "tl/tl_basic_types.h"

namespace tl {

QString utf16(const QByteArray &v) {
return QString::fromUtf8(v);
}

} // namespace tl
4 changes: 1 addition & 3 deletions tl/tl_basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,7 @@ inline bool operator!=(const string_type &a, const string_type &b) {
return a.v != b.v;
}

inline QString utf16(const QByteArray &v) {
return QString::fromUtf8(v);
}
QString utf16(const QByteArray &v);

inline QByteArray utf8(const QByteArray &v) {
return v;
Expand Down

0 comments on commit 18cde59

Please sign in to comment.