]> git.lyx.org Git - lyx.git/commitdiff
small changes read changelog
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 12 Jul 2001 11:11:10 +0000 (11:11 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 12 Jul 2001 11:11:10 +0000 (11:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2221 a592a061-630c-0410-9148-cb99ea01b6c8

43 files changed:
lib/ChangeLog
lib/ui/default.ui
src/BufferView2.C
src/ChangeLog
src/ColorHandler.C
src/DepTable.C
src/FloatList.C
src/LColor.C
src/LyXAction.C
src/MenuBackend.C
src/Painter.C
src/TextCache.C
src/Variables.C
src/WorkArea.C
src/chset.C
src/converter.C
src/counters.C
src/encoding.C
src/font.h
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlExternal.C
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormDocument.C
src/frontends/xforms/FormFiledialog.C
src/frontends/xforms/FormPreferences.C
src/frontends/xforms/RadioButtonGroup.C
src/frontends/xforms/Toolbar_pimpl.C
src/insets/ChangeLog
src/insets/insetexternal.C
src/insets/insettext.C
src/kbmap.C
src/language.C
src/minibuffer.C
src/paragraph.C
src/paragraph.h
src/paragraph_pimpl.C
src/support/ChangeLog
src/support/filetools.C
src/support/translator.h
src/texrow.C
src/trans.C
src/trans.h
src/trans_decl.h

index c7505e4f88c87cb3db9eba0a85749b0633c59563..3051e7f29f8c0bdb6e9afb49ae71ec3b697bc9ad 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * ui/default.ui: add icon for ert-insert + entry in menu
+
 2001-07-09  Juergen Vigna  <jug@sad.it>
 
        * images/banner.xpm: new development banner after a LyX-Meeting!
 2001-07-09  Juergen Vigna  <jug@sad.it>
 
        * images/banner.xpm: new development banner after a LyX-Meeting!
index 1035cf9b7195e228206f9c52330b7974f6c5bde7..e48ee9d3770df50eda060745d31b553d38e64c8a 100644 (file)
@@ -201,6 +201,7 @@ Menuset
        Item "Note...|N" "note-insert"
        Submenu "Lists & TOC|O" "insert_toc"
        Separator
        Item "Note...|N" "note-insert"
        Submenu "Lists & TOC|O" "insert_toc"
        Separator
+       Item "TeX|T" "ert-insert"
        Item "Minipage|p" "minipage-insert"
        Item "Graphics...|G" "figure-insert"
        Item "Tabular Material...|b" "dialog-tabular-insert"
        Item "Minipage|p" "minipage-insert"
        Item "Graphics...|G" "figure-insert"
        Item "Tabular Material...|b" "dialog-tabular-insert"
@@ -365,7 +366,8 @@ Toolbar
     Icon "font-noun"
     Icon "font-free"
     Separator
     Icon "font-noun"
     Icon "font-free"
     Separator
-    Icon "tex-mode"
+#    Icon "tex-mode"
+    Icon "ert-insert"
     Icon "math-mode"
     Separator
     Icon "footnote-insert"
     Icon "math-mode"
     Separator
     Icon "footnote-insert"
index dc33aa57271926d9148429ab4dceaeb53313d72d..c1ccb9009925591ea8d26ef9395a5d69c2a45378 100644 (file)
@@ -137,10 +137,10 @@ void BufferView::insertErrors(TeXErrors & terr)
        for (TeXErrors::Errors::const_iterator cit = terr.begin();
             cit != terr.end();
             ++cit) {
        for (TeXErrors::Errors::const_iterator cit = terr.begin();
             cit != terr.end();
             ++cit) {
-               string const desctext((*cit).error_desc);
-               string const errortext((*cit).error_text);
+               string const desctext(cit->error_desc);
+               string const errortext(cit->error_text);
                string const msgtxt = desctext + '\n' + errortext;
                string const msgtxt = desctext + '\n' + errortext;
-               int const errorrow = (*cit).error_in_line;
+               int const errorrow = cit->error_in_line;
 
                // Insert error string for row number
                int tmpid = -1; 
 
                // Insert error string for row number
                int tmpid = -1; 
index 70bb3a8ecd1f41b9d8f4a45b9df002f6c80622c7..748e086e938fd5c4c983076b85f6d3e81b78b7c4 100644 (file)
@@ -1,3 +1,38 @@
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * trans_decl.h: remove allowed from KmodInfo
+
+       * trans.[Ch] (AddDeakkey): change prototype to not have allowd.
+       remove allowed code 
+       (Load): adjust
+
+       * paragraph_pimpl.C (erase): use boost::prior
+
+       * Painter.C (text): use data() instead of c_str() when length is
+       also provided.
+       * WorkArea.C (putClipboard): ditto
+       * font.h (width): ditto
+
+       * BufferView2.C: use it-> instead of (*it). for iterators
+       * texrow.C: ditto
+       * paragraph_pimpl.C: ditto
+       * paragraph.C: ditto
+       * minibuffer.C: ditto
+       * language.C: ditto
+       * kbmap.C: ditto
+       * encoding.C: ditto
+       * counters.C: ditto
+       * converter.C: ditto
+       * chset.C: ditto
+       * Variables.C: ditto
+       * TextCache.C: ditto
+       * MenuBackend.C: ditto
+       * LyXAction.C: ditto
+       * LColor.C: ditto
+       * FloatList.C: ditto
+       * DepTable.C: ditto
+       * ColorHandler.C (LyXColorHandler): ditto
+
 2001-07-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * BufferView_pimpl.C (Dispatch): handle LFUN_OPENSTUFF.
 2001-07-10  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * BufferView_pimpl.C (Dispatch): handle LFUN_OPENSTUFF.
index 2272dd12aeed9db4a175b4b88dd2624a1ce274cd..fcd516610e6a08cdbcf71a431bf3b457d75d6a8d 100644 (file)
@@ -50,7 +50,7 @@ LyXColorHandler::~LyXColorHandler()
        // Iterate over the line cache and Free the GCs
        for (LineGCCache::iterator lit = lineGCcache.begin();
             lit != lineGCcache.end(); ++lit) {
        // Iterate over the line cache and Free the GCs
        for (LineGCCache::iterator lit = lineGCcache.begin();
             lit != lineGCcache.end(); ++lit) {
-               XFreeGC(display, (*lit).second);
+               XFreeGC(display, lit->second);
        }
 }
 
        }
 }
 
index 0bc13ef436c0ef739596e4488b13f2006acbd0a9..906b1f236e7b899e8babac985d419607dcbd982b 100644 (file)
@@ -49,11 +49,11 @@ void DepTable::update()
        for (DepList::iterator itr = deplist.begin();
            itr != deplist.end();
            ++itr) {
        for (DepList::iterator itr = deplist.begin();
            itr != deplist.end();
            ++itr) {
-               unsigned long const one = (*itr).second.second;
-               unsigned long const two = lyx::sum((*itr).first);
-               (*itr).second = make_pair(one, two);
+               unsigned long const one = itr->second.second;
+               unsigned long const two = lyx::sum(itr->first);
+               itr->second = make_pair(one, two);
                if (lyxerr.debugging(Debug::DEPEND)) {
                if (lyxerr.debugging(Debug::DEPEND)) {
-                       lyxerr << "Update dep: " << (*itr).first << " "
+                       lyxerr << "Update dep: " << itr->first << " "
                               << one << " " << two;
                        if (one != two)
                                lyxerr << " +";
                               << one << " " << two;
                        if (one != two)
                                lyxerr << " +";
@@ -68,7 +68,7 @@ bool DepTable::sumchange() const
        for (DepList::const_iterator cit = deplist.begin();
             cit != deplist.end();
             ++cit) {
        for (DepList::const_iterator cit = deplist.begin();
             cit != deplist.end();
             ++cit) {
-               if ((*cit).second.first != (*cit).second.second) return true;
+               if ((*cit).second.first != cit->second.second) return true;
        }
        return false;
 }
        }
        return false;
 }
@@ -80,8 +80,8 @@ bool DepTable::haschanged(string const & f) const
        string fil = MakeAbsPath(f);
        DepList::const_iterator cit = deplist.find(fil);
        if (cit != deplist.end()) {
        string fil = MakeAbsPath(f);
        DepList::const_iterator cit = deplist.find(fil);
        if (cit != deplist.end()) {
-               if ((*cit).second.first != (*cit).second.second
-                   && (*cit).second.second != 0)
+               if (cit->second.first != cit->second.second
+                   && cit->second.second != 0)
                        return true;
        }
        return false;
                        return true;
        }
        return false;
@@ -93,8 +93,8 @@ bool DepTable::extchanged(string const & ext) const
        for (DepList::const_iterator cit = deplist.begin();
             cit != deplist.end();
             ++cit) {
        for (DepList::const_iterator cit = deplist.begin();
             cit != deplist.end();
             ++cit) {
-               if (suffixIs((*cit).first, ext)) {
-                       if ((*cit).second.first != (*cit).second.second)
+               if (suffixIs(cit->first, ext)) {
+                       if (cit->second.first != cit->second.second)
                                return true;
                }
        }
                                return true;
                }
        }
@@ -116,8 +116,8 @@ void DepTable::remove_files_with_extension(string const & suf)
        // we want const_iterator (Lgb)
        for (DepList::iterator cit = deplist.begin();
             cit != deplist.end(); ++cit) {
        // we want const_iterator (Lgb)
        for (DepList::iterator cit = deplist.begin();
             cit != deplist.end(); ++cit) {
-               if (!suffixIs((*cit).first, suf))
-                       tmp[(*cit).first] = (*cit).second;
+               if (!suffixIs(cit->first, suf))
+                       tmp[cit->first] = cit->second;
        }
        deplist.swap(tmp);
 }
        }
        deplist.swap(tmp);
 }
@@ -130,13 +130,13 @@ void DepTable::write(string const & f) const
             cit != deplist.end(); ++cit) {
                if (lyxerr.debugging(Debug::DEPEND)) {
                        lyxerr << "Write dep: "
             cit != deplist.end(); ++cit) {
                if (lyxerr.debugging(Debug::DEPEND)) {
                        lyxerr << "Write dep: "
-                              << (*cit).first << " "
-                              << (*cit).second.first << " "
-                              << (*cit).second.second << endl;
+                              << cit->first << " "
+                              << cit->second.first << " "
+                              << cit->second.second << endl;
                }
                }
-               ofs << (*cit).first << " "
-                   << (*cit).second.first << " "
-                   << (*cit).second.second << endl;
+               ofs << cit->first << " "
+                   << cit->second.first << " "
+                   << cit->second.second << endl;
        }
 }
 
        }
 }
 
index 0e2992d2ec90aee3138e83075092dc88f7f75864..0d697910f6eb20e39c57bbcd1ac60ebb4515e7d1 100644 (file)
@@ -67,7 +67,7 @@ string const FloatList::defaultPlacement(string const & t) const
 {
        List::const_iterator cit = list.find(t);
        if (cit != list.end())
 {
        List::const_iterator cit = list.find(t);
        if (cit != list.end())
-               return (*cit).second.placement();
+               return cit->second.placement();
        return string();
 }
 
        return string();
 }
 
@@ -84,7 +84,7 @@ Floating const & FloatList::getType(string const & t) const
        // I wish we could use exceptions
        List::const_iterator cit = list.find(t);
        if (cit != list.end())
        // I wish we could use exceptions
        List::const_iterator cit = list.find(t);
        if (cit != list.end())
-               return (*cit).second;
+               return cit->second;
 #ifdef HAVE_EXCEPTIONS
        throw UnknownFloatType(t);
 #else
 #ifdef HAVE_EXCEPTIONS
        throw UnknownFloatType(t);
 #else
index 8f884adb05a53b6df87e2c8c5da38bda829e566d..fce673cb75dda082ba18530b5cecaeb58ab54310 100644 (file)
@@ -116,7 +116,7 @@ string const LColor::getGUIName(LColor::color c) const
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
-               return _((*ici).second.guiname);
+               return _(ici->second.guiname);
 
        return "none";
 }
 
        return "none";
 }
@@ -126,7 +126,7 @@ string const LColor::getX11Name(LColor::color c) const
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end()) 
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end()) 
-               return (*ici).second.x11name;
+               return ici->second.x11name;
 
        lyxerr << "LyX internal error: Missing color"
                " entry in LColor.C for " << int(c) << '\n';
 
        lyxerr << "LyX internal error: Missing color"
                " entry in LColor.C for " << int(c) << '\n';
@@ -139,7 +139,7 @@ string const LColor::getLaTeXName(LColor::color c) const
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
-               return (*ici).second.latexname;
+               return ici->second.latexname;
        return "black";
 }
 
        return "black";
 }
 
@@ -148,7 +148,7 @@ string const LColor::getLyXName(LColor::color c) const
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
 {
        InfoTab::const_iterator ici = infotab.find(c);
        if (ici != infotab.end())
-               return (*ici).second.lyxname;
+               return ici->second.lyxname;
        return "black";
 }
 
        return "black";
 }
 
@@ -157,7 +157,7 @@ void LColor::setColor(LColor::color col, string const & x11name)
 {
        InfoTab::iterator iti = infotab.find(col);
        if (iti != infotab.end()) {
 {
        InfoTab::iterator iti = infotab.find(col);
        if (iti != infotab.end()) {
-               (*iti).second.x11name = x11name;
+               iti->second.x11name = x11name;
                return;
        }
        lyxerr << "LyX internal error: color and such.\n";
                return;
        }
        lyxerr << "LyX internal error: color and such.\n";
@@ -186,8 +186,8 @@ LColor::color LColor::getFromGUIName(string const & guiname) const
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
-               if (!compare_no_case(_((*ici).second.guiname), guiname))
-                       return (*ici).first;
+               if (!compare_no_case(_(ici->second.guiname), guiname))
+                       return ici->first;
        }
        return LColor::inherit;
 }
        }
        return LColor::inherit;
 }
@@ -199,8 +199,8 @@ LColor::color LColor::getFromLyXName(string const & lyxname) const
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
-               if (!compare_no_case((*ici).second.lyxname, lyxname))
-                       return (*ici).first;
+               if (!compare_no_case(ici->second.lyxname, lyxname))
+                       return ici->first;
        }
        return LColor::inherit;
 }
        }
        return LColor::inherit;
 }
index 753554303552e427eeb2a07b89f6297c8aa290d4..ca2531057365f8dafb65e54247004ec200392aec 100644 (file)
@@ -456,9 +456,9 @@ int LyXAction::searchActionArg(kb_action action, string const & arg) const
                return LFUN_UNKNOWN_ACTION;
        }
 
                return LFUN_UNKNOWN_ACTION;
        }
 
-       arg_item::const_iterator aci = (*pit).second.find(arg);
+       arg_item::const_iterator aci = pit->second.find(arg);
 
 
-       if (aci == (*pit).second.end()) {
+       if (aci == pit->second.end()) {
                // the action does not have any pseudoactions with this arg
                lyxerr[Debug::ACTION] 
                        << "Action " << action
                // the action does not have any pseudoactions with this arg
                lyxerr[Debug::ACTION] 
                        << "Action " << action
@@ -470,9 +470,9 @@ int LyXAction::searchActionArg(kb_action action, string const & arg) const
        // pseudo action exist
        lyxerr[Debug::ACTION] << "Pseudoaction exist[" 
                              << action << '|' 
        // pseudo action exist
        lyxerr[Debug::ACTION] << "Pseudoaction exist[" 
                              << action << '|' 
-                             << arg << "] = " << (*aci).second << endl;
+                             << arg << "] = " << aci->second << endl;
 
 
-       return (*aci).second;
+       return aci->second;
 }
 
 
 }
 
 
@@ -496,7 +496,7 @@ int LyXAction::getPseudoAction(kb_action action, string const & arg) const
        // get the arg_item map
        arg_map::iterator ami = lyx_arg_map.find(action);
        // put the new pseudo function in it
        // get the arg_item map
        arg_map::iterator ami = lyx_arg_map.find(action);
        // put the new pseudo function in it
-       (*ami).second[arg] = pseudo_counter;
+       ami->second[arg] = pseudo_counter;
 
        lyxerr[Debug::ACTION] << "Creating new pseudoaction "
                              << pseudo_counter << " for [" << action
 
        lyxerr[Debug::ACTION] << "Creating new pseudoaction "
                              << pseudo_counter << " for [" << action
@@ -516,10 +516,10 @@ kb_action LyXAction::retrieveActionArg(int pseudo, string & arg) const
 
        if (pit != lyx_pseudo_map.end()) {
                lyxerr[Debug::ACTION] << "Found the pseudoaction: ["
 
        if (pit != lyx_pseudo_map.end()) {
                lyxerr[Debug::ACTION] << "Found the pseudoaction: ["
-                                     << (*pit).second.action << '|'
-                                     << (*pit).second.arg << '\n';
-               arg = (*pit).second.arg;
-               return (*pit).second.action;
+                                     << pit->second.action << '|'
+                                     << pit->second.arg << '\n';
+               arg = pit->second.arg;
+               return pit->second.action;
        } else {
                lyxerr << "Lyx Error: Unrecognized pseudo-action\n";
                return LFUN_UNKNOWN_ACTION;
        } else {
                lyxerr << "Lyx Error: Unrecognized pseudo-action\n";
                return LFUN_UNKNOWN_ACTION;
@@ -542,10 +542,10 @@ int LyXAction::LookupFunc(string const & func) const
 
        if (!argstr.empty() && fit != lyx_func_map.end()) {
                // might be pseudo (or create one)
 
        if (!argstr.empty() && fit != lyx_func_map.end()) {
                // might be pseudo (or create one)
-               return getPseudoAction((*fit).second, argstr);
+               return getPseudoAction(fit->second, argstr);
        }
 
        }
 
-       return fit != lyx_func_map.end() ? (*fit).second : LFUN_UNKNOWN_ACTION;
+       return fit != lyx_func_map.end() ? fit->second : LFUN_UNKNOWN_ACTION;
 }
 
 
 }
 
 
@@ -570,14 +570,14 @@ int LyXAction::getApproxFunc(string const & func) const
                        lyx_func_map.lower_bound(func);
                
                if (fit != lyx_func_map.end()) {
                        lyx_func_map.lower_bound(func);
                
                if (fit != lyx_func_map.end()) {
-                       action =  (*fit).second;
+                       action =  fit->second;
                }
        } else {  // Go get the next function
                func_map::const_iterator fit = 
                        lyx_func_map.upper_bound(func);
                
                if (fit != lyx_func_map.end()) {
                }
        } else {  // Go get the next function
                func_map::const_iterator fit = 
                        lyx_func_map.upper_bound(func);
                
                if (fit != lyx_func_map.end()) {
-                       action =  (*fit).second;
+                       action =  fit->second;
                }
        }
        
                }
        }
        
@@ -606,7 +606,7 @@ string const LyXAction::getActionName(int action) const
        info_map::const_iterator iit = lyx_info_map.find(ac);
 
        if (iit != lyx_info_map.end()) {
        info_map::const_iterator iit = lyx_info_map.find(ac);
 
        if (iit != lyx_info_map.end()) {
-               string ret((*iit).second.name);
+               string ret(iit->second.name);
                ret += arg;
                return ret;
        } else 
                ret += arg;
                return ret;
        } else 
@@ -631,15 +631,15 @@ string const LyXAction::helpText(int pseudoaction) const
                if (lyxerr.debugging(Debug::ACTION)) {
                        lyxerr << "Action: " << action << '\n';
                        lyxerr << "   name: "
                if (lyxerr.debugging(Debug::ACTION)) {
                        lyxerr << "Action: " << action << '\n';
                        lyxerr << "   name: "
-                              << (*ici).second.name << '\n';
+                              << ici->second.name << '\n';
                        lyxerr << " attrib: "
                        lyxerr << " attrib: "
-                              << (*ici).second.attrib << '\n';
+                              << ici->second.attrib << '\n';
                        lyxerr << "   help: "
                        lyxerr << "   help: "
-                              << (*ici).second.helpText << '\n';
+                              << ici->second.helpText << '\n';
                }
                }
-               help = (*ici).second.helpText;
+               help = ici->second.helpText;
                // if the is no help text use the name of the func instead.
                // if the is no help text use the name of the func instead.
-               if (help.empty()) help = (*ici).second.name;
+               if (help.empty()) help = ici->second.name;
        }
 
        if (help.empty()) {
        }
 
        if (help.empty()) {
@@ -659,7 +659,7 @@ bool LyXAction::funcHasFlag(kb_action action,
        info_map::const_iterator ici = lyx_info_map.find(action);
 
        if (ici != lyx_info_map.end()) {
        info_map::const_iterator ici = lyx_info_map.find(action);
 
        if (ici != lyx_info_map.end()) {
-               return (*ici).second.attrib & flag;
+               return ici->second.attrib & flag;
        } else {
                // it really should exist, but...
                lyxerr << "LyXAction::funcHasFlag: "
        } else {
                // it really should exist, but...
                lyxerr << "LyXAction::funcHasFlag: "
index 6ae0d02ea4daa6d701ced5823517907bbb90bad9..166c0076bf5d441e1ce7145ea7685708d69a573e 100644 (file)
@@ -251,7 +251,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
 {
        for (const_iterator cit = begin();
             cit != end() ; ++cit) {
 {
        for (const_iterator cit = begin();
             cit != end() ; ++cit) {
-               switch ((*cit).kind()) {
+               switch (cit->kind()) {
                case MenuItem::Lastfiles: {
                        int ii = 1;
                        LastFiles::const_iterator lfit = lastfiles->begin();
                case MenuItem::Lastfiles: {
                        int ii = 1;
                        LastFiles::const_iterator lfit = lastfiles->begin();
@@ -305,7 +305,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
                        Formats formats;
                        
                        kb_action action;
                        Formats formats;
                        
                        kb_action action;
-                       switch ((*cit).kind()) {
+                       switch (cit->kind()) {
                        case MenuItem::ImportFormats:
                                formats = Importer::GetImportableFormats();
                                action = LFUN_IMPORT;
                        case MenuItem::ImportFormats:
                                formats = Importer::GetImportableFormats();
                                action = LFUN_IMPORT;
@@ -331,7 +331,7 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
                                if ((*fit)->dummy())
                                        continue;
                                string label = (*fit)->prettyname();
                                if ((*fit)->dummy())
                                        continue;
                                string label = (*fit)->prettyname();
-                               if ((*cit).kind() == MenuItem::ImportFormats)
+                               if (cit->kind() == MenuItem::ImportFormats)
                                        if ((*fit)->name() == "text")
                                                label = _("Ascii text as lines");
                                        else if ((*fit)->name() == "textparagraph")
                                        if ((*fit)->name() == "text")
                                                label = _("Ascii text as lines");
                                        else if ((*fit)->name() == "textparagraph")
index 8c731244c3399dc931da2be62255c8781f873254..d32451ea4c4733013c0fdb1d93f28b43299655f6 100644 (file)
@@ -266,7 +266,7 @@ PainterBase & Painter::image(int x, int y, int w, int h, LyXImage const * image)
 
 PainterBase & Painter::text(int x, int y, string const & s, LyXFont const & f)
 {
 
 PainterBase & Painter::text(int x, int y, string const & s, LyXFont const & f)
 {
-       return text(x, y, s.c_str(), s.length(), f);
+       return text(x, y, s.data(), s.length(), f);
 }
 
 
 }
 
 
index f7133d60302feff5171c6861452159353fc453ac..d7bb5c54a22808addfe38bf4e17c212f62b0e8f3 100644 (file)
@@ -75,7 +75,7 @@ LyXText * TextCache::findFit(Buffer * b, int p)
        Cache::iterator it = find_if(cache.begin(), cache.end(),
                                     text_fits(b, p));
        if (it != cache.end()) {
        Cache::iterator it = find_if(cache.begin(), cache.end(),
                                     text_fits(b, p));
        if (it != cache.end()) {
-               LyXText * tmp = (*it).second.second;
+               LyXText * tmp = it->second.second;
                cache.erase(it);
                return tmp;
        }
                cache.erase(it);
                return tmp;
        }
index 25e3c44539afcb36a98768602a470cf1c38e3643..22e41ed8b72921eb882e7144d7245ecb664d9cb8 100644 (file)
@@ -32,7 +32,7 @@ string const Variables::get(string const & var) const
 {
        Vars::const_iterator cit = vars_.find(var);
        if (cit != vars_.end()) 
 {
        Vars::const_iterator cit = vars_.find(var);
        if (cit != vars_.end()) 
-               return (*cit).second;
+               return cit->second;
        else 
                return string();
 }
        else 
                return string();
 }
index f1ffab7c70a3f015a062a1cbe3782793a46b7f1c..2a262f77525f8a704693fa321bff81655d850d20 100644 (file)
@@ -525,5 +525,5 @@ void WorkArea::putClipboard(string const & s) const
        static string hold;
        hold = s;
        
        static string hold;
        hold = s;
        
-       fl_stuff_clipboard(work_area, 0, hold.c_str(), hold.size(), 0);
+       fl_stuff_clipboard(work_area, 0, hold.data(), hold.size(), 0);
 }
 }
index a6ac394b4be33c1a47b4d3ad55709251fe9b2acd..a2a716191581d08b0d7ac35a9507985e274690be 100644 (file)
@@ -70,7 +70,7 @@ pair<bool, int> const CharacterSet::encodeString(string const & str) const
        Cdef::const_iterator cit = map_.find(str);
        if (cit != map_.end()) {
                ret =  true;
        Cdef::const_iterator cit = map_.find(str);
        if (cit != map_.end()) {
                ret =  true;
-               val = (*cit).second;
+               val = cit->second;
        }
        lyxerr[Debug::KBMAP] << "   "
                             << (ret ? "yes we" : "no we don't")
        }
        lyxerr[Debug::KBMAP] << "   "
                             << (ret ? "yes we" : "no we don't")
index e07402318ffb754d038b3452d73c5b2bbe788f25..aa3fbe8d6b06fff52655c32ac1a1638e456591d2 100644 (file)
@@ -699,7 +699,7 @@ bool Converters::Move(string const & from, string const & to, bool copy)
             it != files.end(); ++it)
                if (prefixIs(*it, base)) {
                        string from2 = path + *it;
             it != files.end(); ++it)
                if (prefixIs(*it, base)) {
                        string from2 = path + *it;
-                       string to2 = to_base + (*it).substr(base.length());
+                       string to2 = to_base + it->substr(base.length());
                        to2 = ChangeExtension(to2, to_extension);
                        lyxerr[Debug::FILES] << "moving " << from2 
                                             << " to " << to2 << endl;
                        to2 = ChangeExtension(to2, to_extension);
                        lyxerr[Debug::FILES] << "moving " << from2 
                                             << " to " << to2 << endl;
index 53d495a6815009b9d9b0ecf3367f30306596a5b4..0fa97db461f040137e307a809a0810d7d6b6dd11 100644 (file)
@@ -65,7 +65,7 @@ Counters::~Counters()
        for (CounterList::iterator it = counterList.begin();
             it != counterList.end();
             ++it)
        for (CounterList::iterator it = counterList.begin();
             it != counterList.end();
             ++it)
-               delete (*it).second;
+               delete it->second;
 }
 
 
 }
 
 
@@ -100,8 +100,8 @@ void Counters::newCounter(string const & newc, string const & oldc)
        }
 
        Counter * tmp = new Counter;
        }
 
        Counter * tmp = new Counter;
-       (*it).second->onstep.connect(SigC::slot(tmp,
-                                        &Counter::reset));
+       it->second->onstep.connect(SigC::slot(tmp,
+                                             &Counter::reset));
        counterList[newc] = tmp;
 }
 
        counterList[newc] = tmp;
 }
 
@@ -113,7 +113,7 @@ void Counters::set(string const & ctr, int val)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->set(val);
+       it->second->set(val);
 }
 
 
 }
 
 
@@ -124,7 +124,7 @@ void Counters::addto(string const & ctr, int val)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->addto(val);
+       it->second->addto(val);
 }
 
 
 }
 
 
@@ -135,7 +135,7 @@ int Counters::value(string const & ctr) const
                lyxerr << "Counter does not exist." << endl;
                return 0;
        }
                lyxerr << "Counter does not exist." << endl;
                return 0;
        }
-       return (*cit).second->value();
+       return cit->second->value();
 }
 
 
 }
 
 
@@ -146,5 +146,5 @@ void Counters::step(string const & ctr)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->step();
+       it->second->step();
 }
 }
index fdc6ed4944dca22c840f894ffc11cdebc568e020..f28aad4d84a4a16e652b42791acd46a6f41734cd 100644 (file)
@@ -277,7 +277,7 @@ Encoding const * Encodings::getEncoding(string const & encoding) const
 {
                EncodingList::const_iterator it = encodinglist.find(encoding);
        if (it != encodinglist.end())
 {
                EncodingList::const_iterator it = encodinglist.find(encoding);
        if (it != encodinglist.end())
-               return &(*it).second;
+               return &it->second;
        else
                return 0;
 }
        else
                return 0;
 }
index ae164a7d10f76fbe3e435fdb79bfd46b10729b26..7e286e48f1502fc2756926a1e69cfe6850fdd507 100644 (file)
@@ -56,7 +56,7 @@ struct lyxfont {
        static
        int width(string const & s, LyXFont const & f) {
                if (s.empty()) return 0;
        static
        int width(string const & s, LyXFont const & f) {
                if (s.empty()) return 0;
-               return width(s.c_str(), s.length(), f);
+               return width(s.data(), s.length(), f);
        }
        ///
        //static
        }
        ///
        //static
index 4255c0d63c053e5cf69bda2aac814517d9ab9acb..fa5ab26b9896f89845830b904db42287c3110724 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * ControlExternal.C: (*it). -> it->
+
 2001-06-16  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * ButtonController.h: move some included header files out of the
 2001-06-16  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * ButtonController.h: move some included header files out of the
index 3207a2869a3d055453818853d7dfed73cbe742f8..e1c0b2b8bf38294603e359d5bf648aa77edcbdac 100644 (file)
@@ -141,7 +141,7 @@ ExternalTemplate ControlExternal::getTemplate(int i) const
        for (int n = 1; n < i; ++n)
                ++i1;
 
        for (int n = 1; n < i; ++n)
                ++i1;
 
-       return (*i1).second;
+       return i1->second;
 }
 
 
 }
 
 
index 8fe51dca03a0eabf90b2b099079ed4c20a34a8e9..bbf2eea014270acdff34810d98c407efad9787f8 100644 (file)
@@ -1,4 +1,10 @@
-<<<<<<< ChangeLog
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * FormFiledialog.C: (*it). -> it->
+       * Toolbar_pimpl.C: ditto
+       * RadioButtonGroup.C: ditto
+       * FormPreferences.C: ditto
+
 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * GUIRunTime.C (x11Display): 
 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * GUIRunTime.C (x11Display): 
@@ -6,7 +12,6 @@
        (x11Colormap): 
        (x11VisualDepth): new methods
 
        (x11Colormap): 
        (x11VisualDepth): new methods
 
-=======
 2001-07-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * FormDocument.C (class_apply): call CutAndPaste::'s staitc method
 2001-07-03  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * FormDocument.C (class_apply): call CutAndPaste::'s staitc method
@@ -17,7 +22,6 @@
 
        * GUIRunTime.C (createMainView): implement
 
 
        * GUIRunTime.C (createMainView): implement
 
->>>>>>> 1.104
 2001-06-22  John Levon  <moz@compsoc.man.ac.uk>
 
        * FormCharacter.C:
 2001-06-22  John Levon  <moz@compsoc.man.ac.uk>
 
        * FormCharacter.C:
index 828295fd02d631f34fb67c103f91cba2fd12e521..f2dc47aa2c104d13d47bde8a06d63fee9bcf7820 100644 (file)
@@ -139,7 +139,7 @@ void FormDocument::build()
     for (LyXTextClassList::const_iterator cit = textclasslist.begin();
         cit != textclasslist.end(); ++cit)
     {
     for (LyXTextClassList::const_iterator cit = textclasslist.begin();
         cit != textclasslist.end(); ++cit)
     {
-       combo_doc_class->addto((*cit).description());
+       combo_doc_class->addto(cit->description());
     }
 
     fl_addto_choice(class_->choice_doc_spacing,
     }
 
     fl_addto_choice(class_->choice_doc_spacing,
@@ -191,7 +191,7 @@ void FormDocument::build()
 
     for (Languages::const_iterator cit = languages.begin();
        cit != languages.end(); ++cit) {
 
     for (Languages::const_iterator cit = languages.begin();
        cit != languages.end(); ++cit) {
-       combo_language->addto((*cit).second.lang());
+       combo_language->addto(cit->second.lang());
     }
 
     fl_addto_choice(language_->choice_quotes_language,
     }
 
     fl_addto_choice(language_->choice_quotes_language,
index 260f6b7fb24d17ea68f4fdd7a7a6ee58e0a7e482..c43a2f049cfeb33bb070b9728947646c4a56fdf4 100644 (file)
@@ -92,7 +92,7 @@ public:
                        add(ID);
                        return users[ID];
                }
                        add(ID);
                        return users[ID];
                }
-               return (*cit).second;
+               return cit->second;
        }
 private:
        ///
        }
 private:
        ///
@@ -143,7 +143,7 @@ string const & GroupCache::find(gid_t ID) const
                add(ID);
                return groups[ID];
        }
                add(ID);
                return groups[ID];
        }
-       return (*cit).second;
+       return cit->second;
 }
 
 
 }
 
 
@@ -341,7 +341,7 @@ void FileDialog::Private::Reread()
        // Add them to directory box
        for (DirEntries::const_iterator cit = direntries.begin();
             cit != direntries.end(); ++cit) {
        // Add them to directory box
        for (DirEntries::const_iterator cit = direntries.begin();
             cit != direntries.end(); ++cit) {
-               string const temp = line + (*cit).pszDisplayed;
+               string const temp = line + cit->pszDisplayed;
                fl_add_browser_line(pFileDlgForm->List, temp.c_str());
        }
        fl_set_browser_topline(pFileDlgForm->List, iDepth);
                fl_add_browser_line(pFileDlgForm->List, temp.c_str());
        }
        fl_set_browser_topline(pFileDlgForm->List, iDepth);
@@ -452,7 +452,7 @@ void FileDialog::Private::SetButton(int iIndex, string const & pszName,
                *pTemp = pszPath;
        } else {
                fl_hide_object(pObject);
                *pTemp = pszPath;
        } else {
                fl_hide_object(pObject);
-               (*pTemp).erase();
+               pTemp->erase();
        }
 }
 
        }
 }
 
index 6e121c10186db71bf56dd24328450d22910bb9fe..f8503dc84d8ef285449ffbbc6de03d254558cb56 100644 (file)
@@ -410,12 +410,12 @@ void FormPreferences::Colors::apply()
        for (vector<XformsColor>::const_iterator cit = xformsColorDB.begin();
             cit != xformsColorDB.end(); ++cit) {
                RGBColor col;
        for (vector<XformsColor>::const_iterator cit = xformsColorDB.begin();
             cit != xformsColorDB.end(); ++cit) {
                RGBColor col;
-               fl_getmcolor((*cit).colorID, &col.r, &col.g, &col.b);
-               if (col != (*cit).color()) {
+               fl_getmcolor(cit->colorID, &col.r, &col.g, &col.b);
+               if (col != cit->color()) {
                        modifiedXformsPrefs = true;
                        modifiedXformsPrefs = true;
-                       if ((*cit).colorID == FL_BLACK)
+                       if (cit->colorID == FL_BLACK)
                                modifiedText = true;
                                modifiedText = true;
-                       if ((*cit).colorID == FL_COL1)
+                       if (cit->colorID == FL_COL1)
                                modifiedBackground = true;
                }
        }
                                modifiedBackground = true;
                }
        }
@@ -424,14 +424,13 @@ void FormPreferences::Colors::apply()
                for (vector<XformsColor>::const_iterator cit =
                             xformsColorDB.begin(); 
                     cit != xformsColorDB.end(); ++cit) {
                for (vector<XformsColor>::const_iterator cit =
                             xformsColorDB.begin(); 
                     cit != xformsColorDB.end(); ++cit) {
-                       fl_mapcolor((*cit).colorID,
-                                   (*cit).r, (*cit).g, (*cit).b);
+                       fl_mapcolor(cit->colorID, cit->r, cit->g, cit->b);
 
 
-                       if (modifiedText && (*cit).colorID == FL_BLACK) {
+                       if (modifiedText && cit->colorID == FL_BLACK) {
                                AdjustVal(FL_INACTIVE, FL_BLACK, 0.5);
                        }
 
                                AdjustVal(FL_INACTIVE, FL_BLACK, 0.5);
                        }
 
-                       if (modifiedBackground && (*cit).colorID == FL_COL1) {
+                       if (modifiedBackground && cit->colorID == FL_COL1) {
                                AdjustVal(FL_MCOL,      FL_COL1, 0.1);
                                AdjustVal(FL_TOP_BCOL,  FL_COL1, 0.1);
                                AdjustVal(FL_LEFT_BCOL, FL_COL1, 0.1);
                                AdjustVal(FL_MCOL,      FL_COL1, 0.1);
                                AdjustVal(FL_TOP_BCOL,  FL_COL1, 0.1);
                                AdjustVal(FL_LEFT_BCOL, FL_COL1, 0.1);
@@ -440,9 +439,9 @@ void FormPreferences::Colors::apply()
                                AdjustVal(FL_BOTTOM_BCOL, FL_COL1, -0.5);
                        }
 
                                AdjustVal(FL_BOTTOM_BCOL, FL_COL1, -0.5);
                        }
 
-                       if ((*cit).colorID == GUI_COLOR_CURSOR) {
+                       if (cit->colorID == GUI_COLOR_CURSOR) {
                                fl_mapcolor(GUI_COLOR_CURSOR,
                                fl_mapcolor(GUI_COLOR_CURSOR,
-                                           (*cit).r, (*cit).g, (*cit).b);
+                                           cit->r, cit->g, cit->b);
                                fl_set_cursor_color(FL_DEFAULT_CURSOR,
                                                    GUI_COLOR_CURSOR, FL_WHITE);
                        }
                                fl_set_cursor_color(FL_DEFAULT_CURSOR,
                                                    GUI_COLOR_CURSOR, FL_WHITE);
                        }
@@ -453,11 +452,11 @@ void FormPreferences::Colors::apply()
        // Now do the same for the LyX LColors...
        for (vector<NamedColor>::const_iterator cit = lyxColorDB.begin();
             cit != lyxColorDB.end(); ++cit) {
        // Now do the same for the LyX LColors...
        for (vector<NamedColor>::const_iterator cit = lyxColorDB.begin();
             cit != lyxColorDB.end(); ++cit) {
-               LColor::color lc = lcolor.getFromGUIName((*cit).getname());
+               LColor::color lc = lcolor.getFromGUIName(cit->getname());
                if (lc == LColor::inherit) continue;
 
                // Create a valid X11 name of the form "#rrggbb"
                if (lc == LColor::inherit) continue;
 
                // Create a valid X11 name of the form "#rrggbb"
-               string const hexname = X11hexname((*cit).color());
+               string const hexname = X11hexname(cit->color());
                
                if (lcolor.getX11Name(lc) != hexname) {
                        lyxerr[Debug::GUI]
                
                if (lcolor.getX11Name(lc) != hexname) {
                        lyxerr[Debug::GUI]
@@ -816,11 +815,11 @@ void FormPreferences::Colors::LoadBrowserLyX()
        fl_clear_browser(colbr);
        for (vector<XformsColor>::const_iterator cit = xformsColorDB.begin();
             cit != xformsColorDB.end(); ++cit) {
        fl_clear_browser(colbr);
        for (vector<XformsColor>::const_iterator cit = xformsColorDB.begin();
             cit != xformsColorDB.end(); ++cit) {
-               fl_addto_browser(colbr, (*cit).getname().c_str());
+               fl_addto_browser(colbr, cit->getname().c_str());
        }
        for (vector<NamedColor>::const_iterator cit = lyxColorDB.begin();
             cit != lyxColorDB.end(); ++cit) {
        }
        for (vector<NamedColor>::const_iterator cit = lyxColorDB.begin();
             cit != lyxColorDB.end(); ++cit) {
-               fl_addto_browser(colbr, (*cit).getname().c_str());
+               fl_addto_browser(colbr, cit->getname().c_str());
        }
 
        // just to be safe...
        }
 
        // just to be safe...
@@ -1046,8 +1045,8 @@ void FormPreferences::Converters::UpdateBrowser()
        fl_clear_browser(dialog_->browser_all);
        for (::Converters::const_iterator cit = local_converters.begin();
             cit != local_converters.end(); ++cit) {
        fl_clear_browser(dialog_->browser_all);
        for (::Converters::const_iterator cit = local_converters.begin();
             cit != local_converters.end(); ++cit) {
-               string const name = (*cit).From->prettyname() + " -> "
-                       + (*cit).To->prettyname();
+               string const name = cit->From->prettyname() + " -> "
+                       + cit->To->prettyname();
                fl_addto_browser(dialog_->browser_all, name.c_str());
        }
        Input();
                fl_addto_browser(dialog_->browser_all, name.c_str());
        }
        Input();
@@ -1190,7 +1189,7 @@ void FormPreferences::Converters::UpdateChoices() const
                        choice += " | ";
                else
                        choice += " ";
                        choice += " | ";
                else
                        choice += " ";
-               choice += (*cit).prettyname();
+               choice += cit->prettyname();
        }
        choice += " ";
 
        }
        choice += " ";
 
@@ -1313,7 +1312,7 @@ void FormPreferences::Formats::UpdateBrowser()
        for (::Formats::const_iterator cit = local_formats.begin();
             cit != local_formats.end(); ++cit)
                fl_addto_browser(dialog_->browser_all,
        for (::Formats::const_iterator cit = local_formats.begin();
             cit != local_formats.end(); ++cit)
                fl_addto_browser(dialog_->browser_all,
-                                (*cit).prettyname().c_str());
+                                cit->prettyname().c_str());
 
        Input();
        fl_unfreeze_form(dialog_->form);
 
        Input();
        fl_unfreeze_form(dialog_->form);
@@ -1669,7 +1668,7 @@ void FormPreferences::Language::build()
 
        for (Languages::const_iterator cit = languages.begin();
            cit != languages.end(); ++cit) {
 
        for (Languages::const_iterator cit = languages.begin();
            cit != languages.end(); ++cit) {
-               combo_default_lang->addto((*cit).second.lang());
+               combo_default_lang->addto(cit->second.lang());
        }
 
        fl_end_form();
        }
 
        fl_end_form();
index 403b19c1459f87e9456b87c7b6e69772d86022a0..21fdb673b0b2fbd1606aba8014befb5820578718 100644 (file)
@@ -72,7 +72,7 @@ void RadioButtonGroup::setButton(int value)
                << endl;
        }
        else {
                << endl;
        }
        else {
-               fl_set_button((*it).first, 1);
+               fl_set_button(it->first, 1);
        }
 
 }
        }
 
 }
@@ -94,7 +94,7 @@ int RadioButtonGroup::getButton()
 
        // If such a button was found, return its value.
        if (it != map.end()) {
 
        // If such a button was found, return its value.
        if (it != map.end()) {
-               return (*it).second;
+               return it->second;
        }
 
        lyxerr << "BUG: No radio button found to be active." << endl;
        }
 
        lyxerr << "BUG: No radio button found to be active." << endl;
index 4657f45b8ef98eab3c4162368fbc3be741176695..fee4d5e1826dd70e09842be0c30381e3a440953a 100644 (file)
@@ -237,10 +237,10 @@ void Toolbar::Pimpl::updateLayoutList(bool force)
                LyXTextClass::const_iterator end = tc.end();
                for (LyXTextClass::const_iterator cit = tc.begin();
                     cit != end; ++cit) {
                LyXTextClass::const_iterator end = tc.end();
                for (LyXTextClass::const_iterator cit = tc.begin();
                     cit != end; ++cit) {
-                       if ((*cit).obsoleted_by().empty())
-                               combox->addline(_((*cit).name()));
+                       if (cit->obsoleted_by().empty())
+                               combox->addline(_(cit->name()));
                        else
                        else
-                               combox->addline("@N" + _((*cit).name()));
+                               combox->addline("@N" + _(cit->name()));
                }
        }
        // we need to do this.
                }
        }
        // we need to do this.
index 9d83f19d052924c8eb78dc199ff285f94742d3af..dff8f7deded3f80f9b7395e757ff8541a6edc484 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * insetexternal.C: (*it). -> it->
+       * insettext.C: ditto
+
 2001-07-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * insetcollapsable.C (edit): always open collapsed insets (even if
 2001-07-11  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * insetcollapsable.C (edit): always open collapsed insets (even if
index 8eaa064280d004d94d4b9048869e3bafdaf9870d..408a9ba40ec7efa4fc7aa5597cc7976c019d6a22 100644 (file)
@@ -133,11 +133,11 @@ int InsetExternal::write(string const & format,
        
        if (et.automaticProduction) {
                executeCommand(doSubstitution(buf,
        
        if (et.automaticProduction) {
                executeCommand(doSubstitution(buf,
-                                             (*cit).second.updateCommand),
+                                             cit->second.updateCommand),
                               buf);
        }
        
                               buf);
        }
        
-       os << doSubstitution(buf, (*cit).second.product);
+       os << doSubstitution(buf, cit->second.product);
        return 0; // CHECK  (FIXME check what ? - jbl)
 }
 
        return 0; // CHECK  (FIXME check what ? - jbl)
 }
 
@@ -176,11 +176,11 @@ void InsetExternal::validate(LaTeXFeatures & features) const
        if (cit == et.formats.end())
                return;
        
        if (cit == et.formats.end())
                return;
        
-       if (!(*cit).second.requirement.empty()) {
-               features.require((*cit).second.requirement);
+       if (!cit->second.requirement.empty()) {
+               features.require(cit->second.requirement);
        }
        }
-       if (!(*cit).second.preamble.empty()) {
-               features.externalPreambles += (*cit).second.preamble + "\n";
+       if (!cit->second.preamble.empty()) {
+               features.externalPreambles += cit->second.preamble + "\n";
        }
 }
 
        }
 }
 
@@ -267,7 +267,7 @@ void InsetExternal::updateExternal() const
                return;
        
        executeCommand(doSubstitution(view_->buffer(),
                return;
        
        executeCommand(doSubstitution(view_->buffer(),
-                                     (*cit).second.updateCommand),
+                                     cit->second.updateCommand),
                       view_->buffer());
 }
 
                       view_->buffer());
 }
 
index 5b0e3aa863f7683b532d22f7a61ac554898e859b..dee8bec63f0f2d845f7b749332ac791d55020256 100644 (file)
@@ -1870,8 +1870,8 @@ void InsetText::paragraph(Paragraph * p)
 #if 0
        // we now have to update/redraw all instances
        for (Cache::iterator cit = cache.begin(); cit != cache.end(); ++cit) {
 #if 0
        // we now have to update/redraw all instances
        for (Cache::iterator cit = cache.begin(); cit != cache.end(); ++cit) {
-               delete (*cit).second;
-               (*cit).second = 0;
+               delete cit->second;
+               cit->second = 0;
        }
 #endif
        // redraw myself when asked for
        }
 #endif
        // redraw myself when asked for
index 13ec0039eafeae3814adc3ed6b07907bfda87e46..5c97ff3eeb83ca17ac32476db5eb0c4bcf7b69bb 100644 (file)
@@ -117,19 +117,19 @@ int kb_keymap::lookup(unsigned int key,
 
        for (Table::const_iterator cit = table.begin();
             cit != table.end(); ++cit) {
 
        for (Table::const_iterator cit = table.begin();
             cit != table.end(); ++cit) {
-               unsigned int const msk1 = (*cit).mod & 0xffff;
-               unsigned int const msk0 = ((*cit).mod >> 16) & 0xffff;
-               if ((*cit).code == key && (mod & ~msk0) == msk1) {
+               unsigned int const msk1 = cit->mod & 0xffff;
+               unsigned int const msk0 = (cit->mod >> 16) & 0xffff;
+               if (cit->code == key && (mod & ~msk0) == msk1) {
                        // math found:
                        // math found:
-                       if ((*cit).table.get()) {
+                       if (cit->table.get()) {
                                // this is a prefix key - set new map
                                // this is a prefix key - set new map
-                               seq->curmap = (*cit).table.get();
+                               seq->curmap = cit->table.get();
                                return 0;
                        } else {
                                // final key - reset map
                                seq->curmap = seq->stdmap;
                                seq->delseq();
                                return 0;
                        } else {
                                // final key - reset map
                                seq->curmap = seq->stdmap;
                                seq->delseq();
-                               return (*cit).action;
+                               return cit->action;
                        }
                }
        }
                        }
                }
        }
@@ -181,7 +181,7 @@ int kb_keymap::defkey(kb_sequence * seq, int action, int idx /*= 0*/)
        if (table.size() != 0) { // without this I get strange crashes
                Table::iterator end = table.end();
        for (Table::iterator it = table.begin(); it != end; ++it) {
        if (table.size() != 0) { // without this I get strange crashes
                Table::iterator end = table.end();
        for (Table::iterator it = table.begin(); it != end; ++it) {
-               if (code == (*it).code && modmsk == (*it).mod) {
+               if (code == it->code && modmsk == it->mod) {
                        // overwrite binding
                        if (idx + 1 == seq->length) {
                                string buf;
                        // overwrite binding
                        if (idx + 1 == seq->length) {
                                string buf;
@@ -191,12 +191,12 @@ int kb_keymap::defkey(kb_sequence * seq, int action, int idx /*= 0*/)
                                        << buf
                                        << "' is overriding old binding..."
                                        << endl;
                                        << buf
                                        << "' is overriding old binding..."
                                        << endl;
-                               if ((*it).table.get()) {
-                                       (*it).table.reset(0);
+                               if (it->table.get()) {
+                                       it->table.reset(0);
                                }
                                }
-                               (*it).action = action;
+                               it->action = action;
                                return 0;
                                return 0;
-                       } else if (!(*it).table.get()) {
+                       } else if (!it->table.get()) {
                                string buf;
                                seq->print(buf, true);
                                lyxerr << "Error: New binding for '" << buf
                                string buf;
                                seq->print(buf, true);
                                lyxerr << "Error: New binding for '" << buf
@@ -204,23 +204,23 @@ int kb_keymap::defkey(kb_sequence * seq, int action, int idx /*= 0*/)
                                       << endl;
                                return -1;
                        } else {
                                       << endl;
                                return -1;
                        } else {
-                               return (*it).table->defkey(seq, action,
-                                                          idx + 1);
+                               return it->table->defkey(seq, action,
+                                                        idx + 1);
                        }
                }
        }
        }
        
        Table::iterator newone = table.insert(table.end(), kb_key());
                        }
                }
        }
        }
        
        Table::iterator newone = table.insert(table.end(), kb_key());
-       (*newone).code = code;
-       (*newone).mod = modmsk;
+       newone->code = code;
+       newone->mod = modmsk;
        if (idx + 1 == seq->length) {
        if (idx + 1 == seq->length) {
-               (*newone).action = action;
-               (*newone).table.reset(0);
+               newone->action = action;
+               newone->table.reset(0);
                return 0;
        } else {
                return 0;
        } else {
-               (*newone).table.reset(new kb_keymap);
-               return (*newone).table->defkey(seq, action, idx + 1);
+               newone->table.reset(new kb_keymap);
+               return newone->table->defkey(seq, action, idx + 1);
        }
 }
 
        }
 }
 
@@ -242,12 +242,12 @@ string const kb_keymap::findbinding(int act, string const & prefix) const
        Table::const_iterator end = table.end();
        for (Table::const_iterator cit = table.begin();
            cit != end; ++cit) {
        Table::const_iterator end = table.end();
        for (Table::const_iterator cit = table.begin();
            cit != end; ++cit) {
-               if ((*cit).table.get()) {
-                       res += (*cit).table->findbinding(act,
-                                                        prefix
-                                                        + keyname((*cit))
-                                                        + " ");
-               } else if ((*cit).action == act) {
+               if (cit->table.get()) {
+                       res += cit->table->findbinding(act,
+                                                      prefix
+                                                      + keyname((*cit))
+                                                      + " ");
+               } else if (cit->action == act) {
                        res += "[";
                        res += prefix + keyname((*cit));
                        res += "] ";
                        res += "[";
                        res += prefix + keyname((*cit));
                        res += "] ";
index 298890e06781518bfacecdf0992776e0376fac2d..77f31cf93f4d577e322ba16d5f66cd9c014edede 100644 (file)
@@ -95,7 +95,7 @@ Language const * Languages::getLanguage(string const & language) const
 {
                const_iterator it = languagelist.find(language);
        if (it != languagelist.end())
 {
                const_iterator it = languagelist.find(language);
        if (it != languagelist.end())
-               return &(*it).second;
+               return &it->second;
        else
                return 0;
 }
        else
                return 0;
 }
index 70015b2c2ef0088445d802f8a3702cb1c06ebab5..a347acec8e23893e275cfded86bd2d4c6a34c7dc 100644 (file)
@@ -103,7 +103,7 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key)
                                stored_set(input);
                                fl_set_input(ob, _("[End of history]"));
                        } else {
                                stored_set(input);
                                fl_set_input(ob, _("[End of history]"));
                        } else {
-                               fl_set_input(ob, (*hist_iter).c_str());
+                               fl_set_input(ob, hist_iter->c_str());
                        }
                        return 1; 
                case XK_Up:
                        }
                        return 1; 
                case XK_Up:
@@ -113,7 +113,7 @@ int MiniBuffer::peek_event(FL_OBJECT * ob, int event, int key)
                                fl_set_input(ob, _("[Beginning of history]"));
                        } else {
                                --hist_iter;
                                fl_set_input(ob, _("[Beginning of history]"));
                        } else {
                                --hist_iter;
-                               fl_set_input(ob, (*hist_iter).c_str());
+                               fl_set_input(ob, hist_iter->c_str());
                        }
                        return 1; 
                case 9:
                        }
                        return 1; 
                case 9:
index 5ce8667b97355d3c7eb494aee59e6b1dd32eabe7..99564189715530e13631cf719b86a544cb67bbef 100644 (file)
@@ -150,7 +150,7 @@ Paragraph::~Paragraph()
 
        for (InsetList::iterator it = insetlist.begin();
             it != insetlist.end(); ++it) {
 
        for (InsetList::iterator it = insetlist.begin();
             it != insetlist.end(); ++it) {
-               delete (*it).inset;
+               delete it->inset;
        }
 
         // ale970302
        }
 
         // ale970302
@@ -336,16 +336,16 @@ void Paragraph::validate(LaTeXFeatures & features) const
        
        for (Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
             cit != pimpl_->fontlist.end(); ++cit) {
        
        for (Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
             cit != pimpl_->fontlist.end(); ++cit) {
-               if ((*cit).font().noun() == LyXFont::ON) {
+               if (cit->font().noun() == LyXFont::ON) {
                        lyxerr[Debug::LATEX] << "font.noun: "
                        lyxerr[Debug::LATEX] << "font.noun: "
-                                            << (*cit).font().noun()
+                                            << cit->font().noun()
                                             << endl;
                        features.noun = true;
                        lyxerr[Debug::LATEX] << "Noun enabled. Font: "
                                             << endl;
                        features.noun = true;
                        lyxerr[Debug::LATEX] << "Noun enabled. Font: "
-                                            << (*cit).font().stateText(0)
+                                            << cit->font().stateText(0)
                                             << endl;
                }
                                             << endl;
                }
-               switch ((*cit).font().color()) {
+               switch (cit->font().color()) {
                case LColor::none:
                case LColor::inherit:
                case LColor::ignore:
                case LColor::none:
                case LColor::inherit:
                case LColor::ignore:
@@ -353,11 +353,11 @@ void Paragraph::validate(LaTeXFeatures & features) const
                default:
                        features.color = true;
                        lyxerr[Debug::LATEX] << "Color enabled. Font: "
                default:
                        features.color = true;
                        lyxerr[Debug::LATEX] << "Color enabled. Font: "
-                                            << (*cit).font().stateText(0)
+                                            << cit->font().stateText(0)
                                             << endl;
                }
 
                                             << endl;
                }
 
-               Language const * language = (*cit).font().language();
+               Language const * language = cit->font().language();
                if (language->babel() != doc_language->babel()) {
                        features.UsedLanguages.insert(language);
                        lyxerr[Debug::LATEX] << "Found language "
                if (language->babel() != doc_language->babel()) {
                        features.UsedLanguages.insert(language);
                        lyxerr[Debug::LATEX] << "Found language "
@@ -368,8 +368,8 @@ void Paragraph::validate(LaTeXFeatures & features) const
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if ((*cit).inset)
-                       (*cit).inset->validate(features);
+               if (cit->inset)
+                       cit->inset->validate(features);
        }
 }
 
        }
 }
 
@@ -413,8 +413,8 @@ void Paragraph::cutIntoMinibuffer(BufferParams const & bparams,
                                lower_bound(insetlist.begin(),
                                            insetlist.end(),
                                            search_elem, Pimpl::matchIT());
                                lower_bound(insetlist.begin(),
                                            insetlist.end(),
                                            search_elem, Pimpl::matchIT());
-                       if (it != insetlist.end() && (*it).pos == pos)
-                               (*it).inset = 0;
+                       if (it != insetlist.end() && it->pos == pos)
+                               it->inset = 0;
                } else {
                        minibuffer_inset = 0;
                        minibuffer_char = ' ';
                } else {
                        minibuffer_inset = 0;
                        minibuffer_char = ' ';
@@ -508,8 +508,8 @@ Inset * Paragraph::getInset(Paragraph::size_type pos)
        InsetList::iterator it = lower_bound(insetlist.begin(),
                                             insetlist.end(),
                                             search_inset, Pimpl::matchIT());
        InsetList::iterator it = lower_bound(insetlist.begin(),
                                             insetlist.end(),
                                             search_inset, Pimpl::matchIT());
-       if (it != insetlist.end() && (*it).pos == pos)
-               return (*it).inset;
+       if (it != insetlist.end() && it->pos == pos)
+               return it->inset;
 
        lyxerr << "ERROR (Paragraph::GetInset): "
                "Inset does not exist: " << pos << endl;
 
        lyxerr << "ERROR (Paragraph::GetInset): "
                "Inset does not exist: " << pos << endl;
@@ -533,8 +533,8 @@ Inset const * Paragraph::getInset(Paragraph::size_type pos) const
        InsetList::const_iterator cit = lower_bound(insetlist.begin(),
                                                    insetlist.end(),
                                                    search_inset, Pimpl::matchIT());
        InsetList::const_iterator cit = lower_bound(insetlist.begin(),
                                                    insetlist.end(),
                                                    search_inset, Pimpl::matchIT());
-       if (cit != insetlist.end() && (*cit).pos == pos)
-               return (*cit).inset;
+       if (cit != insetlist.end() && cit->pos == pos)
+               return cit->inset;
 
        lyxerr << "ERROR (Paragraph::GetInset): "
                "Inset does not exist: " << pos << endl;
 
        lyxerr << "ERROR (Paragraph::GetInset): "
                "Inset does not exist: " << pos << endl;
@@ -559,7 +559,7 @@ LyXFont const Paragraph::getFontSettings(BufferParams const & bparams,
                                                   pimpl_->fontlist.end(),
                                                   search_font, Pimpl::matchFT());
        if (cit != pimpl_->fontlist.end())
                                                   pimpl_->fontlist.end(),
                                                   search_font, Pimpl::matchFT());
        if (cit != pimpl_->fontlist.end())
-               return (*cit).font();
+               return cit->font();
        
        if (pos == size() && size())
                return getFontSettings(bparams, pos - 1);
        
        if (pos == size() && size())
                return getFontSettings(bparams, pos - 1);
@@ -657,7 +657,7 @@ Paragraph::highestFontInRange(Paragraph::size_type startpos,
                                 pimpl_->fontlist.end(),
                                 start_search, Pimpl::matchFT());
             cit != end_it; ++cit) {
                                 pimpl_->fontlist.end(),
                                 start_search, Pimpl::matchFT());
             cit != end_it; ++cit) {
-               LyXFont::FONT_SIZE size = (*cit).font().size();
+               LyXFont::FONT_SIZE size = cit->font().size();
                if (size > maxsize && size <= LyXFont::SIZE_HUGER)
                        maxsize = size;
        }
                if (size > maxsize && size <= LyXFont::SIZE_HUGER)
                        maxsize = size;
        }
@@ -1218,8 +1218,8 @@ int Paragraph::getPositionOfInset(Inset * inset) const
        // Find the entry.
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
        // Find the entry.
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if ((*cit).inset == inset) {
-                       return (*cit).pos;
+               if (cit->inset == inset) {
+                       return cit->pos;
                }
        }
        if (inset == bibkey)
                }
        }
        if (inset == bibkey)
@@ -1874,7 +1874,7 @@ bool Paragraph::isMultiLingual(BufferParams const & bparams)
        Language const * doc_language = bparams.language;
        for (Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
             cit != pimpl_->fontlist.end(); ++cit)
        Language const * doc_language = bparams.language;
        for (Pimpl::FontList::const_iterator cit = pimpl_->fontlist.begin();
             cit != pimpl_->fontlist.end(); ++cit)
-               if ((*cit).font().language() != doc_language)
+               if (cit->font().language() != doc_language)
                        return true;
        return false;
 }
                        return true;
        return false;
 }
@@ -1936,8 +1936,8 @@ void Paragraph::setInsetOwner(Inset * i)
        pimpl_->inset_owner = i;
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
        pimpl_->inset_owner = i;
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if ((*cit).inset)
-                       (*cit).inset->setOwner(i);
+               if (cit->inset)
+                       cit->inset->setOwner(i);
        }
 }
 
        }
 }
 
@@ -1947,10 +1947,10 @@ void Paragraph::deleteInsetsLyXText(BufferView * bv)
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if ((*cit).inset) {
-                       if ((*cit).inset->isTextInset()) {
+               if (cit->inset) {
+                       if (cit->inset->isTextInset()) {
                                static_cast<UpdatableInset *>
                                static_cast<UpdatableInset *>
-                                       ((*cit).inset)->deleteLyXText(bv, true);
+                                       (cit->inset)->deleteLyXText(bv, true);
                        }
                }
        }
                        }
                }
        }
@@ -1962,10 +1962,10 @@ void Paragraph::resizeInsetsLyXText(BufferView * bv)
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
        // then the insets
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if ((*cit).inset) {
-                       if ((*cit).inset->isTextInset()) {
+               if (cit->inset) {
+                       if (cit->inset->isTextInset()) {
                                static_cast<UpdatableInset *>
                                static_cast<UpdatableInset *>
-                                       ((*cit).inset)->resizeLyXText(bv, true);
+                                       (cit->inset)->resizeLyXText(bv, true);
                        }
                }
        }
                        }
                }
        }
index da4fb0189497fa8f5e218cef05fb99c3b90133ee..9fc5b9b16fa7f3780b4d7bcade0e5d71cfa33ea0 100644 (file)
@@ -371,9 +371,9 @@ public:
                        return *this;
                }
                ///
                        return *this;
                }
                ///
-               Inset * operator*() { return (*it).inset; }
+               Inset * operator*() { return it->inset; }
                ///
                ///
-               size_type getPos() const {return (*it).pos; }
+               size_type getPos() const {return it->pos; }
                ///
                bool operator==(inset_iterator const & iter) const {
                        return it == iter.it;
                ///
                bool operator==(inset_iterator const & iter) const {
                        return it == iter.it;
index 0963a4f1246e4b247b7d05872c3874c3f86a4c80..27de45d0ae55505813e54fb461c49575856579e7 100644 (file)
@@ -102,7 +102,7 @@ void Paragraph::Pimpl::insertChar(Paragraph::size_type pos,
                                                      fontlist.end(),
                                                      search_font, matchFT());
             it != fontlist.end(); ++it)
                                                      fontlist.end(),
                                                      search_font, matchFT());
             it != fontlist.end(); ++it)
-               (*it).pos((*it).pos() + 1);
+               it->pos(it->pos() + 1);
    
        // Update the inset table.
        InsetTable search_inset(pos, 0);
    
        // Update the inset table.
        InsetTable search_inset(pos, 0);
@@ -110,7 +110,7 @@ void Paragraph::Pimpl::insertChar(Paragraph::size_type pos,
                                                       owner_->insetlist.end(),
                                                       search_inset, matchIT());
             it != owner_->insetlist.end(); ++it)
                                                       owner_->insetlist.end(),
                                                       search_inset, matchIT());
             it != owner_->insetlist.end(); ++it)
-               ++(*it).pos;
+               ++it->pos;
 
        owner_->setFont(pos, font);
 }
 
        owner_->setFont(pos, font);
 }
@@ -130,7 +130,7 @@ void Paragraph::Pimpl::insertInset(Paragraph::size_type pos,
        InsetList::iterator it = std::lower_bound(owner_->insetlist.begin(),
                                                  owner_->insetlist.end(),
                                                  search_inset, matchIT());
        InsetList::iterator it = std::lower_bound(owner_->insetlist.begin(),
                                                  owner_->insetlist.end(),
                                                  search_inset, matchIT());
-       if (it != owner_->insetlist.end() && (*it).pos == pos) {
+       if (it != owner_->insetlist.end() && it->pos == pos) {
                lyxerr << "ERROR (Paragraph::InsertInset): "
                        "there is an inset in position: " << pos << std::endl;
        } else {
                lyxerr << "ERROR (Paragraph::InsertInset): "
                        "there is an inset in position: " << pos << std::endl;
        } else {
@@ -153,8 +153,8 @@ void Paragraph::Pimpl::erase(Paragraph::size_type pos)
                        std::lower_bound(owner_->insetlist.begin(),
                                         owner_->insetlist.end(),
                                         search_inset, matchIT());
                        std::lower_bound(owner_->insetlist.begin(),
                                         owner_->insetlist.end(),
                                         search_inset, matchIT());
-               if (it != owner_->insetlist.end() && (*it).pos == pos) {
-                       delete (*it).inset;
+               if (it != owner_->insetlist.end() && it->pos == pos) {
+                       delete it->inset;
                        owner_->insetlist.erase(it);
                }
        }
                        owner_->insetlist.erase(it);
                }
        }
@@ -168,10 +168,10 @@ void Paragraph::Pimpl::erase(Paragraph::size_type pos)
                std::lower_bound(fontlist.begin(),
                            fontlist.end(),
                            search_font, matchFT());
                std::lower_bound(fontlist.begin(),
                            fontlist.end(),
                            search_font, matchFT());
-       if (it != fontlist.end() && (*it).pos() == pos &&
+       if (it != fontlist.end() && it->pos() == pos &&
            (pos == 0 || 
             (it != fontlist.begin() 
            (pos == 0 || 
             (it != fontlist.begin() 
-             && (*(it - 1)).pos() == pos - 1))) {
+             && boost::prior(it)->pos() == pos - 1))) {
                // If it is a multi-character font
                // entry, we just make it smaller
                // (see update below), otherwise we
                // If it is a multi-character font
                // entry, we just make it smaller
                // (see update below), otherwise we
@@ -189,7 +189,7 @@ void Paragraph::Pimpl::erase(Paragraph::size_type pos)
        // Update all other entries.
        FontList::iterator fend = fontlist.end();
        for (; it != fend; ++it)
        // Update all other entries.
        FontList::iterator fend = fontlist.end();
        for (; it != fend; ++it)
-               (*it).pos((*it).pos() - 1);
+               it->pos(it->pos() - 1);
        
        // Update the inset table.
        InsetTable search_inset(pos, 0);
        
        // Update the inset table.
        InsetTable search_inset(pos, 0);
@@ -199,7 +199,7 @@ void Paragraph::Pimpl::erase(Paragraph::size_type pos)
                                      lend,
                                      search_inset, matchIT());
             it != lend; ++it)
                                      lend,
                                      search_inset, matchIT());
             it != lend; ++it)
-               --(*it).pos;
+               --it->pos;
 }
 
 
 }
 
 
index a4701a298a87d55b15f0438c4ece51cee2ca46ad..56cd9a58e5d4b3b63661c92e9d6c96c663fd9f69 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-12  Lars Gullik Bjønnes  <larsbj@birdstep.com>
+
+       * translator.h: (*it). -> it->
+
 2001-06-26  The LyX Project  <lyx@violet.home.sad.it>
 
        * filetools.C (DeleteAllFilesInDir): send debug output to
 2001-06-26  The LyX Project  <lyx@violet.home.sad.it>
 
        * filetools.C (DeleteAllFilesInDir): send debug output to
index f082e2ad9cbb594ff226153b4c7c6fadce82280b..c247043bc34f6ace27376f27651bb7bd30a41920 100644 (file)
@@ -226,7 +226,7 @@ vector<string> const DirList(string const & dir, string const & ext)
           vector<string> dirlist;
           directory_iterator dit("dir");
           while (dit != directory_iterator()) {
           vector<string> dirlist;
           directory_iterator dit("dir");
           while (dit != directory_iterator()) {
-                  string fil = (*dit).filename;
+                  string fil = dit->filename;
                   if (prefixIs(fil, extension)) {
                           dirlist.push_back(fil);
                   }
                   if (prefixIs(fil, extension)) {
                           dirlist.push_back(fil);
                   }
index 84cc3a31a20bfdd8040b35a7d519357d8d9fd0d4..e211aa468d447067215919fe83342c79796e35b3 100644 (file)
@@ -58,7 +58,7 @@ public:
                                );
                
                if (it != map.end()) {
                                );
                
                if (it != map.end()) {
-                       return (*it).second;
+                       return it->second;
                } else {
                        return default_t2;
                }
                } else {
                        return default_t2;
                }
@@ -85,7 +85,7 @@ public:
                                );
                
                if (it != map.end())
                                );
                
                if (it != map.end())
-                       return (*it).first;
+                       return it->first;
                else {
                        return default_t1;
                }
                else {
                        return default_t1;
                }
index 61f0a7b0ac520cb5f03bbbd111b3c470db29abd0..ba2a065f930056751a85a640b107dcba24ef35d9 100644 (file)
@@ -84,13 +84,13 @@ bool TexRow::getIdFromRow(int row, int & id, int & pos) const
                // same pos.
                for (; kit != end; ++kit) {
                        if (&(*kit) != &(*cit)
                // same pos.
                for (; kit != end; ++kit) {
                        if (&(*kit) != &(*cit)
-                           && (*kit).id() == (*cit).id()
-                           && (*kit).pos() >= (*cit).pos())
-                               (*kit).pos((*kit).pos() + 1);
+                           && kit->id() == cit->id()
+                           && kit->pos() >= cit->pos())
+                               kit->pos(kit->pos() + 1);
                }
 #endif
                }
 #endif
-               id = (*cit).id();
-               pos = (*cit).pos();
+               id = cit->id();
+               pos = cit->pos();
                return true;
        }
        id = -1;
                return true;
        }
        id = -1;
@@ -109,16 +109,16 @@ void TexRow::increasePos(int id, int pos) const
        RowList::iterator kit = rowlist.begin();
        RowList::iterator end = rowlist.end();
        for (; kit != end; ++kit) {
        RowList::iterator kit = rowlist.begin();
        RowList::iterator end = rowlist.end();
        for (; kit != end; ++kit) {
-               if (id == (*kit).id()
-                   && pos < (*kit).pos()) {
-                       (*kit).pos((*kit).pos() + 1);
+               if (id == kit->id()
+                   && pos < kit->pos()) {
+                       kit->pos(kit->pos() + 1);
                        lyxerr[Debug::INFO]
                                << "TeXRow::increasePos: ideally this "
                                "should never happen..." << endl;
                }
                // When verified to work this clause should be deleted.
                        lyxerr[Debug::INFO]
                                << "TeXRow::increasePos: ideally this "
                                "should never happen..." << endl;
                }
                // When verified to work this clause should be deleted.
-               if (id == (*kit).id()
-                   && pos == (*kit).pos()) {
+               if (id == kit->id()
+                   && pos == kit->pos()) {
                        lyxerr[Debug::INFO]
                                << "TexRow::increasePos: this should happen "
                                "maximum one time for each run of "
                        lyxerr[Debug::INFO]
                                << "TexRow::increasePos: this should happen "
                                "maximum one time for each run of "
index 403ac0630ac5258bc9958402ce4028aacfa6bd59..29621b4ca6a645c9bb1085489fd89011d494416b 100644 (file)
@@ -1,7 +1,7 @@
 #include <config.h>
 
 #ifdef __GNUG__
 #include <config.h>
 
 #ifdef __GNUG__
-#pragma implementation "trans.h"
+#pragma implementation
 #endif
 
 #include "LyXView.h"
 #endif
 
 #include "LyXView.h"
@@ -139,8 +139,12 @@ struct keyword_item kmapTags[K_LAST - 1] = {
 tex_accent getkeymod(string const &);
 
 
 tex_accent getkeymod(string const &);
 
 
+#if 0
 void Trans::AddDeadkey(tex_accent accent, string const & keys,
                       string const & allowed)
 void Trans::AddDeadkey(tex_accent accent, string const & keys,
                       string const & allowed)
+#else
+void Trans::AddDeadkey(tex_accent accent, string const & keys)
+#endif
 {
        if (kmod_list_[accent]) {
                FreeException(kmod_list_[accent]->exception_list);
 {
        if (kmod_list_[accent]) {
                FreeException(kmod_list_[accent]->exception_list);
@@ -156,7 +160,9 @@ void Trans::AddDeadkey(tex_accent accent, string const & keys,
                kmod_list_[accent]->allowed= lyx_accent_table[accent].native;
        } else {
 #endif
                kmod_list_[accent]->allowed= lyx_accent_table[accent].native;
        } else {
 #endif
+#if 0
                kmod_list_[accent]->allowed = allowed;
                kmod_list_[accent]->allowed = allowed;
+#endif
 #if 0
        }
 #endif
 #if 0
        }
 #endif
@@ -194,7 +200,7 @@ int Trans::Load(LyXLex & lex)
                        } else
                                return -1;
                        
                        } else
                                return -1;
                        
-                       string keys = lex.GetString();
+                       string const keys = lex.GetString();
 
                        if (lex.next(true)) {
                                if (lyxerr.debugging(Debug::KBMAP))
 
                        if (lex.next(true)) {
                                if (lyxerr.debugging(Debug::KBMAP))
@@ -208,6 +214,10 @@ int Trans::Load(LyXLex & lex)
                        if (accent == TEX_NOACCENT)
                                return -1;
 
                        if (accent == TEX_NOACCENT)
                                return -1;
 
+#if 1
+#warning This code should be removed...
+                       // But we need to fix up all the kmap files first
+                       // so that this field is not present anymore.
                        if (lex.next(true)) {
                                if (lyxerr.debugging(Debug::KBMAP))
                                        lyxerr << "allowed\t`" << lex.text()
                        if (lex.next(true)) {
                                if (lyxerr.debugging(Debug::KBMAP))
                                        lyxerr << "allowed\t`" << lex.text()
@@ -215,9 +225,11 @@ int Trans::Load(LyXLex & lex)
                        } else
                                return -1;
 
                        } else
                                return -1;
 
-                       string allowed = lex.GetString();
-
-                       AddDeadkey(accent, keys, allowed);
+                       string const allowed = lex.GetString();
+                       AddDeadkey(accent, keys /*, allowed*/);
+#else
+                       AddDeadkey(accent, keys);
+#endif
                        break;
                }       
                case KCOMB: {
                        break;
                }       
                case KCOMB: {
index a056e1233a42760589321b4fe2463dcec569d5d7..bb896ee9a79880fb15a93b87bcd6f8770de58107 100644 (file)
@@ -69,9 +69,13 @@ private:
        typedef KmodInfo kmod_list_decl;
        ///
        typedef KmodException keyexc;
        typedef KmodInfo kmod_list_decl;
        ///
        typedef KmodException keyexc;
-    
+#if 0
        ///
        void AddDeadkey(tex_accent, string const &, string const &);
        ///
        void AddDeadkey(tex_accent, string const &, string const &);
+#else
+       ///
+       void AddDeadkey(tex_accent, string const &);
+#endif
        ///
        void FreeKeymap();
        ///
        ///
        void FreeKeymap();
        ///
index df36f7cb0d46430b930ef4f72f4ee2910d1e365c..d26f05cecfdf58571b30d067b5fd05900187a5d6 100644 (file)
@@ -11,6 +11,7 @@ struct Keyexc {
        char c;
        /// exception data
        string data;
        char c;
        /// exception data
        string data;
+       ///
        Keyexc * next;
        /// Combination with another deadkey
        bool combined;
        Keyexc * next;
        /// Combination with another deadkey
        bool combined;
@@ -27,8 +28,10 @@ struct KmodInfo {
        string data;
        ///
        tex_accent accent;
        string data;
        ///
        tex_accent accent;
+#if 0
        ///
        string allowed;
        ///
        string allowed;
+#endif
        ///
        KmodException exception_list;
        ///
        ///
        KmodException exception_list;
        ///