Browse Source

remove dependency libuuid

pull/57/head
shunf4 9 months ago
parent
commit
6764d8ea11
  1. 1
      CMakeLists.txt
  2. 8
      shared/utils.cpp
  3. 1
      shared/utils.h

1
CMakeLists.txt

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

8
shared/utils.cpp

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

1
shared/utils.h

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

Loading…
Cancel
Save