Commit 65042467 authored by Milian Wolff's avatar Milian Wolff
Browse files

Adapt to kdevplatform API changes

parent 74be321d
Pipeline #203698 failed with stage
in 48 seconds
......@@ -17,7 +17,7 @@ using namespace Php;
class HighlightingInstance : public CodeHighlightingInstance {
public:
HighlightingInstance(const CodeHighlighting* highlighting);
Types typeForDeclaration(KDevelop::Declaration* decl, KDevelop::DUContext* context) const override;
CodeHighlightingType typeForDeclaration(KDevelop::Declaration* decl, KDevelop::DUContext* context) const override;
bool useRainbowColor( Declaration* dec ) const override;
};
......@@ -26,13 +26,13 @@ HighlightingInstance::HighlightingInstance(const CodeHighlighting* highlighting)
{
}
HighlightingEnumContainer::Types HighlightingInstance::typeForDeclaration(Declaration* decl, DUContext* context) const
CodeHighlightingType HighlightingInstance::typeForDeclaration(Declaration* decl, DUContext* context) const
{
if (decl && !decl->isFunctionDeclaration() && decl->abstractType()
&& decl->abstractType()->modifiers() & AbstractType::ConstModifier
&& !dynamic_cast<VariableDeclaration*>(decl) )
{
return EnumType;
return CodeHighlightingType::Enum;
} else {
return CodeHighlightingInstance::typeForDeclaration(decl, context);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment