[kazehakase-svn] [3326] * module/embed/gecko/kz-gecko-embed.cpp: don' t use LL_DIV and NS_STATIC_CAST.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Sat Jan 5 01:44:27 JST 2008


Revision: 3326
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3326
Author:   kous
Date:     2008-01-05 01:44:26 +0900 (Sat, 05 Jan 2008)

Log Message:
-----------
* module/embed/gecko/kz-gecko-embed.cpp: don't use LL_DIV and NS_STATIC_CAST.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2008-01-04 16:16:33 UTC (rev 3325)
+++ kazehakase/trunk/ChangeLog	2008-01-04 16:44:26 UTC (rev 3326)
@@ -1,5 +1,8 @@
 2008-01-05  Kouhei Sutou  <kou****@cozmi*****>
 
+	* module/embed/gecko/kz-gecko-embed.cpp: don't use LL_DIV and
+	NS_STATIC_CAST.
+
 	* module/embed/gecko/*.{cpp,h}: removed needless #include.
 
 	* macros/gecko.m4: supported xulrunner 1.9 detection.

Modified: kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp
===================================================================
--- kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp	2008-01-04 16:16:33 UTC (rev 3325)
+++ kazehakase/trunk/module/embed/gecko/kz-gecko-embed.cpp	2008-01-04 16:44:26 UTC (rev 3326)
@@ -96,7 +96,6 @@
 #include <nsIPrefService.h>
 #include <nsIFontEnumerator.h>
 #include <nsISimpleEnumerator.h>
-#include <nsIFontList.h>
 #include <nsMemory.h>
 
 #define KZ_GECKO_EMBED_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), KZ_TYPE_GECKO_EMBED, KzGeckoEmbedPrivate))
@@ -1087,9 +1086,7 @@
 		NS_UTF16ToCString(value,
 				  NS_CSTRING_ENCODING_UTF8, cValue);
 		nsTime lm (cValue.get(), PR_TRUE);
-		GTime last_modified;
-		LL_DIV(last_modified,
-		       NS_STATIC_CAST(PRTime, lm), PR_USEC_PER_SEC);
+		GTime last_modified = (PRTime)lm / PR_USEC_PER_SEC;
 
 		nsCOMPtr<nsIURI> inURI;
 		nsEmbedCString sURI;
@@ -3207,9 +3204,7 @@
 	NS_UTF16ToCString(value,
 			  NS_CSTRING_ENCODING_UTF8, cValue);
 	nsTime last_modified (cValue.get(), PR_FALSE);
-	LL_DIV (mod_time,
-		NS_STATIC_CAST(PRTime, last_modified), PR_USEC_PER_SEC);
-	return mod_time;
+	return (PRTime)last_modified / PR_USEC_PER_SEC;
 }
 
 




More information about the Kazehakase-cvs mailing list
Back to archive index