mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 07:06:04 +00:00
HackStudio: Mark compilation-unit-only functions as static
This also resolves some typing issues that only 'accidentally' worked, like declaring a function to return type A, and the definition actually returning type B (which works if type B is a subtype of type A). I like to call these "ninja imports". To prevent problems like this in the future, I put all globals in a HackStudio.h. I'm not sure about the name, but main.h and common.h felt wrong.
This commit is contained in:
committed by
Andreas Kling
parent
42b057b0c9
commit
7893871d5a
@@ -68,7 +68,7 @@ int VariablesModel::row_count(const GUI::ModelIndex& index) const
|
||||
return node->members.size();
|
||||
}
|
||||
|
||||
String variable_value_as_string(const DebugInfo::VariableInfo& variable)
|
||||
static String variable_value_as_string(const DebugInfo::VariableInfo& variable)
|
||||
{
|
||||
if (variable.location_type != DebugInfo::VariableInfo::LocationType::Address)
|
||||
return "N/A";
|
||||
|
||||
Reference in New Issue
Block a user