Tidying
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
/**
|
||||
* GDB target descriptor.
|
||||
*/
|
||||
struct TargetDescriptor
|
||||
{
|
||||
Targets::TargetDescriptor targetDescriptor;
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
|
||||
namespace Bloom::DebugServer
|
||||
{
|
||||
/**
|
||||
* Every debug server must implement this interface.
|
||||
*
|
||||
* See documentation in src/DebugServer/README.md for more.
|
||||
*/
|
||||
class ServerInterface
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -71,9 +71,9 @@ namespace Bloom
|
||||
*/
|
||||
static inline std::string compiledResourcesPath() {
|
||||
#ifdef BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE
|
||||
return std::string(BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE);
|
||||
return {BLOOM_COMPILED_RESOURCES_PATH_OVERRIDE};
|
||||
#else
|
||||
return std::string(":/compiled");
|
||||
return {":/compiled"};
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -87,9 +87,9 @@ namespace Bloom
|
||||
*/
|
||||
static inline std::string homeDomainName() {
|
||||
#ifdef BLOOM_HOME_DOMAIN_NAME_OVERRIDE
|
||||
return std::string(BLOOM_HOME_DOMAIN_NAME_OVERRIDE);
|
||||
return {BLOOM_HOME_DOMAIN_NAME_OVERRIDE};
|
||||
#else
|
||||
return std::string("https://bloom.oscillate.io");
|
||||
return {"https://bloom.oscillate.io"};
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace Bloom::Widgets
|
||||
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
||||
) {
|
||||
static constexpr int leftMargin = 10;
|
||||
static const auto margins = QMargins(0, 10, 0, 0);
|
||||
|
||||
const auto newRowCount = byteItemsByRowIndex.size();
|
||||
const auto layoutItemMaxIndex = static_cast<int>(this->addressItemsByRowIndex.size() - 1);
|
||||
|
||||
|
||||
@@ -15,17 +15,17 @@ namespace Bloom::Widgets
|
||||
static constexpr int WIDTH = 75;
|
||||
static constexpr int HEIGHT = ByteItem::HEIGHT;
|
||||
|
||||
ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
||||
explicit ByteAddressItem(QGraphicsItem* parent): QGraphicsItem(parent) {};
|
||||
|
||||
void setAddressHex(const QString& address);
|
||||
|
||||
[[nodiscard]] QRectF boundingRect() const override {
|
||||
return QRectF(
|
||||
return {
|
||||
0,
|
||||
0,
|
||||
ByteAddressItem::WIDTH,
|
||||
ByteAddressItem::HEIGHT
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override;
|
||||
|
||||
Reference in New Issue
Block a user