Skip to content
Commit 2cd07174 authored by Igor Kushnir's avatar Igor Kushnir
Browse files

Source formatters: deduplicate and share a common MIME type list

The text/x-csrc MIME type was two positions lower in
CustomScriptPlugin::predefinedStyle()'s version of the list, but this
shouldn't make a difference because:
* text/x-chdr corresponds to the same language as text/x-csrc - C;
* text/x-c++hdr is a subclass of text/x-chdr, which is still above it.

Sharing one common list instance is faster than constructing a new list
each time it is needed.
parent 97bc6339
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