summaryrefslogtreecommitdiff
path: root/nsprpub/pr/src/cplus/rctime.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/src/cplus/rctime.h
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloaduxp-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/src/cplus/rctime.h')
-rw-r--r--nsprpub/pr/src/cplus/rctime.h58
1 files changed, 44 insertions, 14 deletions
diff --git a/nsprpub/pr/src/cplus/rctime.h b/nsprpub/pr/src/cplus/rctime.h
index 4cf7b90422..3752a3d53d 100644
--- a/nsprpub/pr/src/cplus/rctime.h
+++ b/nsprpub/pr/src/cplus/rctime.h
@@ -39,7 +39,7 @@ public:
virtual ~RCTime();
/* assignment operators */
- void operator=(const RCTime&);
+ void operator=(const RCTime&);
void operator=(const PRExplodedTime&);
/* comparitive operators */
@@ -75,31 +75,61 @@ public:
inline RCTime::RCTime(): RCBase() { }
-inline void RCTime::Now() { gmt = PR_Now(); }
-inline RCTime::operator PRTime() const { return gmt; }
+inline void RCTime::Now() {
+ gmt = PR_Now();
+}
+inline RCTime::operator PRTime() const {
+ return gmt;
+}
-inline void RCTime::operator=(PRTime his) { gmt = his; }
-inline void RCTime::operator=(const RCTime& his) { gmt = his.gmt; }
+inline void RCTime::operator=(PRTime his) {
+ gmt = his;
+}
+inline void RCTime::operator=(const RCTime& his) {
+ gmt = his.gmt;
+}
inline PRBool RCTime::operator<(const RCTime& his)
- { return (gmt < his.gmt) ? PR_TRUE : PR_FALSE; }
+{
+ return (gmt < his.gmt) ? PR_TRUE : PR_FALSE;
+}
inline PRBool RCTime::operator>(const RCTime& his)
- { return (gmt > his.gmt) ? PR_TRUE : PR_FALSE; }
+{
+ return (gmt > his.gmt) ? PR_TRUE : PR_FALSE;
+}
inline PRBool RCTime::operator<=(const RCTime& his)
- { return (gmt <= his.gmt) ? PR_TRUE : PR_FALSE; }
+{
+ return (gmt <= his.gmt) ? PR_TRUE : PR_FALSE;
+}
inline PRBool RCTime::operator>=(const RCTime& his)
- { return (gmt >= his.gmt) ? PR_TRUE : PR_FALSE; }
+{
+ return (gmt >= his.gmt) ? PR_TRUE : PR_FALSE;
+}
inline PRBool RCTime::operator==(const RCTime& his)
- { return (gmt == his.gmt) ? PR_TRUE : PR_FALSE; }
+{
+ return (gmt == his.gmt) ? PR_TRUE : PR_FALSE;
+}
inline RCTime& RCTime::operator+=(const RCTime& his)
- { gmt += his.gmt; return *this; }
+{
+ gmt += his.gmt;
+ return *this;
+}
inline RCTime& RCTime::operator-=(const RCTime& his)
- { gmt -= his.gmt; return *this; }
+{
+ gmt -= his.gmt;
+ return *this;
+}
inline RCTime& RCTime::operator/=(PRUint64 his)
- { gmt /= his; return *this; }
+{
+ gmt /= his;
+ return *this;
+}
inline RCTime& RCTime::operator*=(PRUint64 his)
- { gmt *= his; return *this; }
+{
+ gmt *= his;
+ return *this;
+}
#endif /* defined(_RCTIME_H) */