X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBullet.C;h=b14aea8e91566529ca34c0d3c441e314c01e5c12;hb=f65b7ff4ab2fe8ad0d9196c231064240e3fde81f;hp=07665ea0467558f948da4835042cc8c08795b24c;hpb=e059c633b01937f450ff9fa873cfc6b773aa74cc;p=lyx.git diff --git a/src/Bullet.C b/src/Bullet.C index 07665ea046..b14aea8e91 100644 --- a/src/Bullet.C +++ b/src/Bullet.C @@ -53,7 +53,7 @@ Bullet::Bullet(int f, int c, int s) } -string Bullet::getText() +string const & Bullet::getText() const { if (user_text == 0) { generateText(); @@ -62,7 +62,7 @@ string Bullet::getText() } -bool operator == (const Bullet & b1, const Bullet & b2) +bool operator==(const Bullet & b1, const Bullet & b2) { bool result = false; @@ -83,7 +83,7 @@ bool operator == (const Bullet & b1, const Bullet & b2) /*--------------------Private Member Functions-------------------*/ -void Bullet::generateText() +void Bullet::generateText() const { // Assumption: // user hasn't defined their own text and/or I haven't generated @@ -109,7 +109,7 @@ void Bullet::generateText() } -string Bullet::bulletSize(short int s) +string const Bullet::bulletSize(short int s) { // use a parameter rather than hard code `size' in here // in case some future function may want to retrieve @@ -125,7 +125,7 @@ string Bullet::bulletSize(short int s) } -string Bullet::bulletEntry(short int f, short int c) +string const Bullet::bulletEntry(short int f, short int c) { // Despite how this may at first appear the static local variables // are only initialized once..