Skip to content

Commit c3bd9ea

Browse files
committed
refactoring
1 parent 1e0415a commit c3bd9ea

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

src/ruis/gui.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525
#include "widget/input/character_input_widget.hpp"
2626
#include "widget/label/gap.hpp"
2727

28+
using namespace std::string_view_literals;
29+
2830
using namespace ruis;
2931

3032
// NOLINTNEXTLINE(modernize-pass-by-value)
@@ -52,16 +54,8 @@ void gui::init_standard_widgets(const fsif::file& fi)
5254
# include "../soname.txt"
5355
;
5456

55-
{
56-
std::stringstream ss;
57-
ss << "/usr/local/share/ruis/res" << soname << "/";
58-
paths.push_back(ss.str());
59-
}
60-
{
61-
std::stringstream ss;
62-
ss << "/usr/share/ruis/res" << soname << "/";
63-
paths.push_back(ss.str());
64-
}
57+
paths.push_back(utki::cat("/usr/local/share/ruis/res"sv, soname));
58+
paths.push_back(utki::cat("/usr/share/ruis/res"sv, soname));
6559
#endif
6660

6761
bool mounted = false;

0 commit comments

Comments
 (0)