cullmann added a comment.

  Just for the implementation: Is the static default than just a e.g. function 
static QExplicitlySharedDataPointer<FormatPrivate>(new FormatPrivate()) like:
  
  QExplicitlySharedDataPointer<FormatPrivate> &staticDefault()
  {
  
    static QExplicitlySharedDataPointer<FormatPrivate> default(new 
FormatPrivate());
    return default;
  
  }
  
  and the constructor will do
  
  Format::Format() : d(staticDefault())
  {
  }
  
  or is that some other trick?

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D14956

To: cullmann, vkrause
Cc: dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, 
ngraham, bruns, demsking, cullmann, sars

Reply via email to