[frameworks/kcodecs] src/probers: [KEncodingProber] Make one virtual base method pure virtual

Stefan Brüns <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 97f65527e8b96253743fb54fd33d1a9391c80a96 by Stefan Brüns.
Committed on 26/07/2026 at 13:31.
Pushed by bruns into branch 'master'.

[KEncodingProber] Make one virtual base method pure virtual

M  +1    -4    src/probers/CharDistribution.h

https://invent.kde.org/frameworks/kcodecs/-/commit/97f65527e8b96253743fb54fd33d1a9391c80a96

diff --git a/src/probers/CharDistribution.h b/src/probers/CharDistribution.h
index 1b20c26..3532636 100644
--- a/src/probers/CharDistribution.h
+++ b/src/probers/CharDistribution.h
@@ -50,10 +50,7 @@ protected:
     // we do not handle character base on its original encoding string, but
     // convert this encoding string to a number, here called order.
     // This allows multiple encodings of a language to share one frequency table
-    virtual int GetOrder(const char * /* str */)
-    {
-        return -1;
-    }
+    virtual int GetOrder(const char * /* str */) = 0;
 
     // The number of characters whose frequency order is less than 512
     unsigned int mFreqChars = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.