Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2258)

Unified Diff: Source/wtf/text/TextCodecLatin1.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/text/TextCodecLatin1.h ('k') | Source/wtf/text/TextCodecUTF16.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextCodecLatin1.cpp
diff --git a/Source/wtf/text/TextCodecLatin1.cpp b/Source/wtf/text/TextCodecLatin1.cpp
index 247ee3644200fed16d51bb43b04c355b7c67db72..ae0b14bbaf24c32f55d753a1f6cf8a4e58ecb132 100644
--- a/Source/wtf/text/TextCodecLatin1.cpp
+++ b/Source/wtf/text/TextCodecLatin1.cpp
@@ -20,7 +20,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
@@ -162,7 +162,7 @@ useLookupTable:
}
return result;
-
+
upConvertTo16Bit:
UChar* characters16;
String result16 = String::createUninitialized(length, characters16);
@@ -187,15 +187,15 @@ upConvertTo16Bit:
if (isAlignedToMachineWord(source)) {
while (source < alignedEnd) {
MachineWord chunk = *reinterpret_cast_ptr<const MachineWord*>(source);
-
+
if (!isAllASCII<LChar>(chunk))
goto useLookupTable16;
-
+
copyASCIIMachineWord(destination16, source);
source += sizeof(MachineWord);
destination16 += sizeof(MachineWord);
}
-
+
if (source == end)
break;
}
@@ -204,11 +204,11 @@ upConvertTo16Bit:
useLookupTable16:
*destination16 = table[*source];
}
-
+
++source;
++destination16;
}
-
+
return result16;
}
« no previous file with comments | « Source/wtf/text/TextCodecLatin1.h ('k') | Source/wtf/text/TextCodecUTF16.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698