Some small refactorizations:
- Removed redundant calls to std::string constructor
- Use default parameters in some places
Fixed GUI bug: file test.cpp is loaded from file if scratchpad is empty.

The underlying problem was in lib and is fixed by changing the behaviour of CppCheck::check(). Checking is performed on empty content without attempt to load from file.