We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5746b84 commit f1289a2Copy full SHA for f1289a2
src/base/gfx/colortransform.cpp
@@ -6,7 +6,6 @@
6
#include <utility>
7
8
#include "base/text/funcstring.h"
9
-#include "base/text/smartstring.h"
10
11
#include "color.h"
12
src/base/text/funcstring.cpp
@@ -3,6 +3,7 @@
3
#include <array>
4
#include <stdexcept>
5
#include <string>
+#include <utility>
#include "smartstring.h"
test/unit/base/gfx/color.cpp
@@ -11,7 +11,7 @@ const static auto tests =
.add_case("Convertable from hex string",
[]
13
{
14
- const Gfx::Color color("#12345678");
+ auto color = Gfx::Color::fromString("#12345678");
15
check() << color.red == 0x12 / 255.0;
16
check() << color.green == 0x34 / 255.0;
17
check() << color.blue == 0x56 / 255.0;
0 commit comments