File tree 5 files changed +8
-10
lines changed
5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -76,3 +76,4 @@ CMakeLists.txt.user
76
76
build *
77
77
.vscode
78
78
/.vscode
79
+ * .bak
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ set(SMCORE_INCLUDE
35
35
license.h
36
36
options .h
37
37
project .h
38
- smcore_global.h
39
38
)
40
39
41
40
set (SMCORE_BODY
Original file line number Diff line number Diff line change 22
22
23
23
#pragma once
24
24
25
- #include < QString>
26
- #include " smcore_global.h"
25
+ #include " smstring.h"
27
26
28
27
// See error class in C++ with enum
29
28
// https://stackoverflow.com/questions/21295935/can-a-c-enum-class-have-methods
@@ -34,7 +33,7 @@ namespace smos
34
33
{
35
34
namespace smcore
36
35
{
37
- class SMCORE_EXPORT Error
36
+ class Error
38
37
{
39
38
public:
40
39
enum ErrorCode
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ namespace smos
32
32
{
33
33
}
34
34
// ******************************************************************************
35
- smos::smcore::Error::ErrorCode Project::loadProject (QString filename)
35
+ smos::smcore::Error::ErrorCode Project::loadProject (smos::smcore::SMSring filename)
36
36
{
37
- if (!std::filesystem::exists (filename. toStdString () ))
37
+ if (!std::filesystem::exists (filename))
38
38
{
39
39
return smos::smcore::Error::ERR_PROJECT_DOES_NOT_EXIST;
40
40
}
Original file line number Diff line number Diff line change 22
22
23
23
#pragma once
24
24
25
- #include < QString>
26
- #include " smcore_global.h"
25
+ #include " smstring.h"
27
26
#include " error.h"
28
27
29
28
namespace smos
30
29
{
31
30
namespace smcore
32
31
{
33
- class SMCORE_EXPORT Project
32
+ class Project
34
33
{
35
34
public:
36
35
/* *
@@ -46,7 +45,7 @@ namespace smos
46
45
*
47
46
* @return smos::smcore::Error::ErrorCode
48
47
*/
49
- smos::smcore::Error::ErrorCode loadProject (QString filename);
48
+ smos::smcore::Error::ErrorCode loadProject (smos::smcore::SMSring filename);
50
49
};
51
50
}
52
51
}
You can’t perform that action at this time.
0 commit comments