]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcite.C
fix compilation pb ; update eu.po
[lyx.git] / src / insets / insetcite.C
index 640c53695b3c82323f6c4dcd2f931227c4be589f..7f70ba44d41b98a300ba052f2d375d7f2dff938b 100644 (file)
@@ -30,17 +30,17 @@ string const InsetCitation::getScreenLabel() const
 
        // If keys is "too long" then only print out the first few tokens
        string label;
-       if( contains( keys, "," ) ) {
+       if (contains(keys, ",")) {
                // Final comma allows while loop to cover all keys
-               keys = frontStrip( split( keys, label, ',' ) ) + ",";
+               keys = frontStrip(split(keys, label, ',')) + ",";
 
-               const int maxSize( 40 );
-               while( contains( keys, "," ) ) {
+               string::size_type const maxSize = 40;
+               while (contains( keys, "," )) {
                        string key;
-                       keys = frontStrip( split( keys, key, ',' ) );
+                       keys = frontStrip(split(keys, key, ','));
 
-                       int size = label.size() + 2 + key.size();
-                       if( size >= maxSize ) {
+                       string::size_type size = label.size() + 2 + key.size();
+                       if (size >= maxSize) {
                                label += ", ...";
                                break;
                        }
@@ -50,15 +50,15 @@ string const InsetCitation::getScreenLabel() const
                label = keys;
        }
 
-       if( !getOptions().empty() )
+       if (!getOptions().empty())
                label += ", " + getOptions();
 
-       return '[' + label + ']';
+       return "[" + label + "]";
 }
 
 
 void InsetCitation::Edit(BufferView * bv, int, int, unsigned int)
 {
-       bv->owner()->getDialogs()->showCitation( this );
+       bv->owner()->getDialogs()->showCitation(this);
 }