[sword-svn] r3122 - in trunk: include src/modules/common
chrislit at crosswire.org
chrislit at crosswire.org
Fri Mar 14 01:08:28 MST 2014
Author: chrislit
Date: 2014-03-14 01:08:28 -0700 (Fri, 14 Mar 2014)
New Revision: 3122
Modified:
trunk/include/swcomprs.h
trunk/include/xzcomprs.h
trunk/src/modules/common/xzcomprs.cpp
Log:
camelCased method names -- they now have a different style from the rest of the class, but match the planned style of all method names
Modified: trunk/include/swcomprs.h
===================================================================
--- trunk/include/swcomprs.h 2014-03-13 09:44:43 UTC (rev 3121)
+++ trunk/include/swcomprs.h 2014-03-14 08:08:28 UTC (rev 3122)
@@ -45,8 +45,8 @@
virtual unsigned long SendChars (char *buf, unsigned long len); // override for other than buffer compression
virtual void Encode (void); // override to provide compression algorythm
virtual void Decode (void); // override to provide compression algorythm
- virtual void SetLevel(int l) {level = l;};
- virtual int GetLevel() {return level;};
+ virtual void setLevel(int l) {level = l;};
+ virtual int getLevel() {return level;};
};
SWORD_NAMESPACE_END
Modified: trunk/include/xzcomprs.h
===================================================================
--- trunk/include/xzcomprs.h 2014-03-13 09:44:43 UTC (rev 3121)
+++ trunk/include/xzcomprs.h 2014-03-14 08:08:28 UTC (rev 3122)
@@ -41,7 +41,7 @@
virtual void Encode(void);
virtual void Decode(void);
- virtual void SetLevel(int l);
+ virtual void setLevel(int l);
private:
uint64_t memlimit; // memory usage limit during decompression
};
Modified: trunk/src/modules/common/xzcomprs.cpp
===================================================================
--- trunk/src/modules/common/xzcomprs.cpp 2014-03-13 09:44:43 UTC (rev 3121)
+++ trunk/src/modules/common/xzcomprs.cpp 2014-03-14 08:08:28 UTC (rev 3122)
@@ -186,7 +186,7 @@
* compressor.
*/
-void XzCompress::SetLevel(int l) {
+void XzCompress::setLevel(int l) {
level = l;
// having changed the compression level, we need to adjust our memlimit accordingly,
More information about the sword-cvs
mailing list