summaryrefslogtreecommitdiff
path: root/include/vcl/field.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-14 09:23:37 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-14 08:23:20 +0000
commitd8644c8edb405abd9d71e62e43e898c1d2a28fd2 (patch)
tree1d9f5e17b3f1a53cad84f2a3a1fe0875ec54d20b /include/vcl/field.hxx
parent6656693836a382e6dac3a8c7ae794517b5f92bcc (diff)
loplugin:passstuffbyref in vcl
Change-Id: I17a4dc73c3fc81b0bfebdf442021af65f8f6166c Reviewed-on: https://gerrit.libreoffice.org/24075 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/field.hxx')
-rw-r--r--include/vcl/field.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx
index 62db9fb204ac..75f82070f78d 100644
--- a/include/vcl/field.hxx
+++ b/include/vcl/field.hxx
@@ -586,9 +586,9 @@ public:
virtual void Last() override;
void SetFirst( const Date& rNewFirst ) { maFirst = rNewFirst; }
- Date GetFirst() const { return maFirst; }
+ const Date& GetFirst() const { return maFirst; }
void SetLast( const Date& rNewLast ) { maLast = rNewLast; }
- Date GetLast() const { return maLast; }
+ const Date& GetLast() const { return maLast; }
virtual void dispose() override;
};
@@ -617,9 +617,9 @@ public:
virtual void Last() override;
void SetFirst( const tools::Time& rNewFirst ) { maFirst = rNewFirst; }
- tools::Time GetFirst() const { return maFirst; }
+ const tools::Time& GetFirst() const { return maFirst; }
void SetLast( const tools::Time& rNewLast ) { maLast = rNewLast; }
- tools::Time GetLast() const { return maLast; }
+ const tools::Time& GetLast() const { return maLast; }
void SetExtFormat( ExtTimeFieldFormat eFormat );
virtual void dispose() override;