Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Vivy
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Elliu
Vivy
Validations
40ad0795
Vérifiée
Valider
40ad0795
rédigé
Il y a 3 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
FIX: Fix segfault -> create the stores on application startup
parent
6b8cc899
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
1 requête de fusion
!21
Add clean logs support + dependent MR
Modifications
4
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
4 fichiers modifiés
src/Lib/Document/VivyDocumentStore.cc
+2
-1
2 ajouts, 1 suppression
src/Lib/Document/VivyDocumentStore.cc
src/Lib/Log.cc
+1
-1
1 ajout, 1 suppression
src/Lib/Log.cc
src/VivyApplication.cc
+4
-0
4 ajouts, 0 suppression
src/VivyApplication.cc
src/VivyApplication.hh
+2
-2
2 ajouts, 2 suppressions
src/VivyApplication.hh
avec
9 ajouts
et
4 suppressions
src/Lib/Document/VivyDocumentStore.cc
+
2
−
1
Voir le fichier @
40ad0795
...
@@ -9,8 +9,9 @@ VivyDocumentStore::newDocument(VivyDocument::Options opt)
...
@@ -9,8 +9,9 @@ VivyDocumentStore::newDocument(VivyDocument::Options opt)
// Add the memory flag
// Add the memory flag
opt
=
static_cast
<
VivyDocument
::
Options
>
(
opt
|
VivyDocument
::
MemoryDocumentCreation
);
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
);
auto
ret
=
std
::
make_shared
<
VivyDocument
>
(
newDocName
,
opt
);
newDocumentNumber
++
;
if
(
ret
)
{
if
(
ret
)
{
const
Uuid
uuid
=
ret
->
getUuid
();
const
Uuid
uuid
=
ret
->
getUuid
();
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/Lib/Log.cc
+
1
−
1
Voir le fichier @
40ad0795
...
@@ -40,7 +40,7 @@ StderrLogSinkDispatcher::handleLogMessage(const std::string_view category,
...
@@ -40,7 +40,7 @@ StderrLogSinkDispatcher::handleLogMessage(const std::string_view category,
{
{
std
::
cerr
<<
"#("
<<
trunkFileName
(
msg
.
getHeader
().
fileName
)
<<
" +"
std
::
cerr
<<
"#("
<<
trunkFileName
(
msg
.
getHeader
().
fileName
)
<<
" +"
<<
msg
.
getHeader
().
lineNumberInFile
<<
" | "
<<
msg
.
getHeader
().
lineNumberInFile
<<
" | "
<<
LogLevel
::
toStdStringView
(
msg
.
getHeader
().
severity
)
<<
" -> "
<<
category
<<
")
\t
"
<<
LogLevel
::
toStdStringView
(
msg
.
getHeader
().
severity
)
<<
" -> "
<<
category
<<
")
"
<<
msg
.
getTextBuffer
()
<<
'\n'
;
<<
msg
.
getTextBuffer
()
<<
'\n'
;
}
}
}
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/VivyApplication.cc
+
4
−
0
Voir le fichier @
40ad0795
#include
"VivyApplication.hh"
#include
"VivyApplication.hh"
#include
"UI/MainWindow.hh"
#include
"UI/MainWindow.hh"
#include
"Lib/Document/VivyDocumentStore.hh"
#include
"Lib/Script/ScriptStore.hh"
using
namespace
Vivy
;
using
namespace
Vivy
;
VivyApplication
::
VivyApplication
(
int
&
argc
,
char
**
argv
)
VivyApplication
::
VivyApplication
(
int
&
argc
,
char
**
argv
)
:
QApplication
(
argc
,
argv
)
:
QApplication
(
argc
,
argv
)
{
{
documentStore
=
std
::
make_shared
<
VivyDocumentStore
>
();
scriptStore
=
std
::
make_shared
<
ScriptStore
>
();
VIVY_LOG_CTOR
()
<<
"Construction is OK"
;
VIVY_LOG_CTOR
()
<<
"Construction is OK"
;
}
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/VivyApplication.hh
+
2
−
2
Voir le fichier @
40ad0795
...
@@ -46,8 +46,8 @@ class VivyApplication : public QApplication {
...
@@ -46,8 +46,8 @@ class VivyApplication : public QApplication {
VIVY_LOGGABLE_OBJECT
(
logSink
,
APPLICATION
,
logger
)
VIVY_LOGGABLE_OBJECT
(
logSink
,
APPLICATION
,
logger
)
public:
public:
std
::
shared_ptr
<
VivyDocumentStore
>
documentStore
{}
;
std
::
shared_ptr
<
VivyDocumentStore
>
documentStore
;
std
::
shared_ptr
<
ScriptStore
>
scriptStore
{}
;
std
::
shared_ptr
<
ScriptStore
>
scriptStore
;
enum
class
Font
{
enum
class
Font
{
Monospace
,
Monospace
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter