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

FIX: Fix segfault -> create the stores on application startup

parent b94c1f05
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Ce commit fait partie de la requête de fusion !21. Les commentaires créés ici seront créés dans le contexte de cette requête de fusion.
......@@ -9,8 +9,9 @@ VivyDocumentStore::newDocument(VivyDocument::Options opt)
// Add the memory flag
opt = static_cast<VivyDocument::Options>(opt | VivyDocument::MemoryDocumentCreation);
const QString newDocName = newDocumentBaseName + QString::number(newDocumentNumber++);
const QString newDocName = newDocumentBaseName + QString::number(newDocumentNumber);
auto ret = std::make_shared<VivyDocument>(newDocName, opt);
newDocumentNumber++;
if (ret) {
const Uuid uuid = ret->getUuid();
......
......@@ -40,7 +40,7 @@ StderrLogSinkDispatcher::handleLogMessage(const std::string_view category,
{
std::cerr << "#(" << trunkFileName(msg.getHeader().fileName) << " +"
<< msg.getHeader().lineNumberInFile << " | "
<< LogLevel::toStdStringView(msg.getHeader().severity) << " -> " << category << ")\t"
<< LogLevel::toStdStringView(msg.getHeader().severity) << " -> " << category << ") "
<< msg.getTextBuffer() << '\n';
}
}
......
#include "VivyApplication.hh"
#include "UI/MainWindow.hh"
#include "Lib/Document/VivyDocumentStore.hh"
#include "Lib/Script/ScriptStore.hh"
using namespace Vivy;
VivyApplication::VivyApplication(int &argc, char **argv)
: QApplication(argc, argv)
{
documentStore = std::make_shared<VivyDocumentStore>();
scriptStore = std::make_shared<ScriptStore>();
VIVY_LOG_CTOR() << "Construction is OK";
}
......
......@@ -46,8 +46,8 @@ class VivyApplication : public QApplication {
VIVY_LOGGABLE_OBJECT(logSink, APPLICATION, logger)
public:
std::shared_ptr<VivyDocumentStore> documentStore{};
std::shared_ptr<ScriptStore> scriptStore{};
std::shared_ptr<VivyDocumentStore> documentStore;
std::shared_ptr<ScriptStore> scriptStore;
enum class Font {
Monospace,
......
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