1
0
forked from blue/squawk

remove dependency libuuid

This commit is contained in:
shunf4 2021-10-05 12:56:36 +08:00
parent 5fbb96618f
commit 6764d8ea11
3 changed files with 2 additions and 8 deletions

View File

@ -147,7 +147,6 @@ add_subdirectory(external/simpleCrypt)
target_link_libraries(squawk squawkUI) target_link_libraries(squawk squawkUI)
target_link_libraries(squawk squawkCORE) target_link_libraries(squawk squawkCORE)
target_link_libraries(squawk uuid)
add_dependencies(${CMAKE_PROJECT_NAME} translations) add_dependencies(${CMAKE_PROJECT_NAME} translations)

View File

@ -17,15 +17,11 @@
*/ */
#include "utils.h" #include "utils.h"
#include <QUuid>
QString Shared::generateUUID() QString Shared::generateUUID()
{ {
uuid_t uuid; return QUuid::createUuid().toString();
uuid_generate(uuid);
char uuid_str[36];
uuid_unparse_lower(uuid, uuid_str);
return uuid_str;
} }

View File

@ -23,7 +23,6 @@
#include <QColor> #include <QColor>
#include <QRegularExpression> #include <QRegularExpression>
#include <uuid/uuid.h>
#include <vector> #include <vector>
namespace Shared { namespace Shared {