summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-03-15 13:26:37 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-15 21:10:29 +0000
commita12159b17085796e2b72d2b49e850092e0b4e8b7 (patch)
treedf7a5d149c9bbfe5c2d2ec16631c3dcb6ae9a901 /core/fxcrt
parent59d9416553b293f6df923c2f3ef33def2d51d7b7 (diff)
downloadpdfium-a12159b17085796e2b72d2b49e850092e0b4e8b7.tar.xz
Refactor some CPDF_ColorSpace code.
Change-Id: I1e30d68dae3bf70cf3c426f6126d593b7f1c3ba4 Reviewed-on: https://pdfium-review.googlesource.com/2991 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/fx_basic_gcc.cpp9
-rw-r--r--core/fxcrt/fx_xml_parser.cpp2
2 files changed, 7 insertions, 4 deletions
diff --git a/core/fxcrt/fx_basic_gcc.cpp b/core/fxcrt/fx_basic_gcc.cpp
index 4960dc8432..e041065b32 100644
--- a/core/fxcrt/fx_basic_gcc.cpp
+++ b/core/fxcrt/fx_basic_gcc.cpp
@@ -110,20 +110,23 @@ extern "C" {
int FXSYS_GetACP() {
return 0;
}
+
uint32_t FXSYS_GetFullPathName(const char* filename,
uint32_t buflen,
char* buf,
char** filepart) {
int srclen = FXSYS_strlen(filename);
- if (!buf || (int)buflen < srclen + 1) {
+ if (!buf || (int)buflen < srclen + 1)
return srclen + 1;
- }
+
FXSYS_strcpy(buf, filename);
return srclen;
}
+
uint32_t FXSYS_GetModuleFileName(void* hModule, char* buf, uint32_t bufsize) {
- return (uint32_t)-1;
+ return 0xFFFFFFFF;
}
+
#ifdef __cplusplus
}
#endif
diff --git a/core/fxcrt/fx_xml_parser.cpp b/core/fxcrt/fx_xml_parser.cpp
index 25024a1b2d..da4815bfd9 100644
--- a/core/fxcrt/fx_xml_parser.cpp
+++ b/core/fxcrt/fx_xml_parser.cpp
@@ -869,7 +869,7 @@ uint32_t CXML_Element::FindElement(CXML_Element* pChild) const {
}
++index;
}
- return (uint32_t)-1;
+ return 0xFFFFFFFF;
}
bool CXML_AttrItem::Matches(const CFX_ByteString& space,