]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.cpp
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / WordList.cpp
index 16f3b92e86e49c08c3f6c079d350f24f439a52ce..d883994a76186d52007bcfa434e229d172145ed8 100644 (file)
@@ -73,9 +73,8 @@ struct WordList::Impl {
 };
 
 
-WordList::WordList()
+WordList::WordList() : d(new Impl)
 {
-       d = new Impl;
        d->c_ = 0;
 
 #if 0
@@ -86,12 +85,6 @@ WordList::WordList()
 }
 
 
-WordList::~WordList()
-{
-       delete d;
-}
-
-
 docstring const & WordList::word(size_t idx) const
 {
        Impl::Words::const_iterator it = d->words_.find_summed_weight(idx);