Programming style improvement: following Cppcheck suggestions.

This commit is contained in:
brunoherbelin
2021-04-04 13:13:06 +02:00
parent b4627a1613
commit f443720319
51 changed files with 269 additions and 271 deletions

View File

@@ -22,7 +22,7 @@ class SourcePreview {
public:
SourcePreview();
void setSource(Source *s = nullptr, std::string label = "");
void setSource(Source *s = nullptr, const std::string &label = "");
Source *getSource();
void Render(float width, bool controlbutton = false);
@@ -157,7 +157,7 @@ public:
// TODO implement the shader editor
std::string currentTextEdit;
void fillShaderEditor(std::string text);
void fillShaderEditor(const std::string &text);
protected: