Skip to content
Extraits de code Groupes Projets
Vérifiée Valider f08d1f09 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

LIB: Uuid check, but should never fail

parent a75e50dc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!9Lua cpp expose
......@@ -37,6 +37,10 @@ public:
{
auto ret = std::make_shared<Document>(file);
const Uuid id = ret->getUuid();
if (documents.count(id) >= 1)
throw std::runtime_error("Document already loaded");
documents[id] = ret;
return ret;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter